There are two machines have been placed in the IDC room has not been how to formally use, today suddenly said a project to go online, so hurriedly configure the environment, do some rights control, has been using the password to log in, and now officially use the public, password login way is certainly not safe, so follow the previous method, using "Key + password" The way to log on to the system, configure the SSH restart service with Xshell use key login missing prompt key is not registered on the remote host, switch off the firewall, check the permissions configuration is no problem, the error is still there, very puzzled, before the configuration did not appear, so gooele a half-day, Finally found himself stepping on that hole, record down, hope next time can quickly pits.
1 First of all, I am using a third-party tool SECURECRT generated key, need to convert to OPENSSH format, if the host with the Openss-keygen generated by the key, there is no problem or the use of SECURECRT tools to convert
2 Check the configuration file,. SSH directory permissions if the Authorized_keys permission is 600 after checking if there are errors you can try to close SELinux and iptables
3 about several hosts to establish a trust relationship, password-free login, the same principle, when creating a key do not enter the password and then on each machine to store each other's public key
Centos Key Login System