When connecting to the server, the following message is displayed. ..
"There are xxx failed login attempts since the last correct login."
In my case, it was 60,000 times, so I was scared and decided to review the security immediately.
Allow connections for specific IPs
$vi /etc/hosts.allow
all: 127.0.0.1
sshd: xxx.xx.x.xx
Deny connections from IPs other than those allowed
$vi /etc/hosts.deny
all: all
sshd: ALL
This is a solution. The login failure message is no longer displayed. Rest assured.
-When specifying a global IP address ・ What are the hosts.allow file and hosts.deny file
Recommended Posts