1. Turn off the firewall or open the SSH login port (default 22) to the firewall.
2, set the hostname temporary: hostname XX Permanent: Modify the corresponding hostname value in the/etc/sysconfig/network, and then restart the network card
3, set the name of the native IP to modify/etc/hosts add native IP name (can be set multiple)
4, view the value of SELinux if it is temporarily modified to: Setenforce name Permanent modification:/etc/selinux/config selinux=disabled default is enforcing temporarily modified will not necessarily have effect
5. Enter/etc/ssh/sshd_config Release Notes:
RSAAuthentication
yes
PubkeyAuthentication
yes
AuthorizedKeysFile .
ssh
/authorized_keys
Restart service:./sbin/service sshd Restart (CentOS 6.5) above is tested on CentOS6.5, and other Linux commands can refer to
Linux if SSH login is not valid (always need to enter a password), you can refer to the following actions