Skip to main content

Error ssh: reverse mapping for hostname [127.0.0.1] failed - POSSIBLE BREAK-IN ATTEMPT!



Yesterday the namecheap dns servers, to which some of my domains were delegated, were inaccessible for a certain period of time. At the same time there was a problem: do not connect to the server from filezilla via sftp.



The log file /var/log/auth.log was filled with the following errors:

  sshd [3914]: [ip] failed - POSSIBLE BREAK-IN ATTEMPT for your hostname.site.com [ip] failed!
 sshd [3914]: fatal: Write failed: Connection reset by peer [preauth] 

The solution was found quickly enough. It is necessary to add the parameter UseDNS no in the configuration file / etc / ssh / sshd_config .

I encountered this problem for the first time. The problem was caused just by the “fall” of the mentioned dns. As I understand it, OpenSSH could not determine the dns records for the domain that pointed to my static ip, and rejected the authorization.




How do you rate the article?
Звёзд: 1Звёзд: 2Звёзд: 3Звёзд: 4Звёзд: 5 ( 3 ratings, average: 5.00 out of 5)
Loading...

Add a comment

Your email will not be published.