The cause of the error occurred
. SSH Directory Permissions issues
File permissions error under. ssh/Path
The client uses a key error to detect if the key is correct
Check the. SSH directory permissions, must be 700
LL. SSH
drwx------2 root root 4096 January 16:34 ssh
Detection. ssh/path file permissions, Id_rsz.pub and Authorized_keys permissions 644, or (ps:.ssh/path can only have authorized_keys files, the client takes the server private key to log on)
LL. ssh/
-rw-r--r--1 root root 397 January 15:41 Authorized_keys
-RW-------1 root root 1679 January 15:41 Id_rsa
-rw-r--r--1 root root 397 January 15:41 id_rsa.pub
-rw-r--r--1 root root 192 January 16:29 known_hosts
-----------------------------------------------------------------------------------------
Tail/var/log/secure
View SSH Login Security log
Service sshd Status
View the status of the Sshd service, including records of successful or failed users
Last-n 50
See the last 50 successful login user information
Lastb-n 50
View the last 50 unsuccessful login user information (view attack IP)
SSH key login, the selected user key is not registered on the remote host; SSH login log, successful login, failed login