Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # vi /etc/ssh/sshd_config
- # 启用密钥登录
- RSAAuthentication yes
- PubkeyAuthentication yes
- # 禁用密码登录
- PasswordAuthentication no
- # 重启ssh
- /etc/init.d/ssh reload
- # 将需要添加的公钥放入authorized_keys文件即可实现密钥登录
- vi ~/.ssh/authorized_keys
Add Comment
Please, Sign In to add comment