Why do this happen?
I find this error message in /var/log/auth
After a few failed attempts to connect to my server I see DenyHosts adding the internal HOST ip the /etc/hosts.deniedssh file
I've modified the /etc/hosts.allow file like this
I find this error message in /var/log/auth
Code:
Feb 11 11:54:10 dock sshd[1315]: warning: /etc/hosts.allow, line 28: can't verify hostname: getaddrinfo(truls.example.no, AF_INET) failed
Feb 11 11:54:11 dock sshd[1316]: reverse mapping checking getaddrinfo for truls.example.no [213.225.83.68] failed - POSSIBLE BREAK-IN ATTEMPT!
Feb 11 11:54:11 dock sshd[1315]: reverse mapping checking getaddrinfo for truls.example.no [213.225.83.68] failed - POSSIBLE BREAK-IN ATTEMPT!
After a few failed attempts to connect to my server I see DenyHosts adding the internal HOST ip the /etc/hosts.deniedssh file
I've modified the /etc/hosts.allow file like this
Code:
# Start by allowing everything (this prevents the rest of the file
# from working, so remove it when you need protection).
# The rules here work on a "First match wins" basis.
#ALL : ALL : allow
# Wrapping sshd(8) is not normally a good idea, but if you
# need to do it, here's how
#sshd : .evil.cracker.example.com : deny
sshd : /etc/hosts.deniedssh : deny
sshd : ALL : allow