# vim /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
PermitRootLogin yes
PasswordAuthentication no
# service sshd restart
5.配置mac端快捷登录
# vim ~/.ssh/config
添加
Host alias
HostName ip
Port 22
User root
ServerAliveInterval 60
IdentityFile ~/.ssh/ip1.pk
//如果有多个
Host alias2
HostName ip2
Port 22
User root
ServerAliveInterval 60