Guest User

Untitled

a guest
May 21st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # vi /etc/ssh/sshd_config
  2.  
  3. # 启用密钥登录
  4. RSAAuthentication yes
  5. PubkeyAuthentication yes
  6.  
  7. # 禁用密码登录
  8. PasswordAuthentication no
  9.  
  10. # 重启ssh
  11. /etc/init.d/ssh reload
  12.  
  13.  
  14. # 将需要添加的公钥放入authorized_keys文件即可实现密钥登录
  15. vi ~/.ssh/authorized_keys
Add Comment
Please, Sign In to add comment