centos7
OpenSSH_6.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013
编辑配置文件/etc/ssh/sshd_config
/etc/ssh/sshd_config
反注释掉AuthorizedKeysFile .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
编辑登录用户配置文件(~/.ssh/authorized_keys)
~/.ssh/authorized_keys
添加公钥
设置权限
chmod 700 ~/.sshchmod 600 ~/.ssh/authorized_keys
systemctl restart sshd