Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Generate key: (into .ssh/id_rsa and .ssh/id_rsa.pub - this file is for public)
  2. ssh-keygen -t rsa
  3.  
  4. And copy this key: and add to (.ssh/authorized_keys our server)
  5. cat .ssh/id_rsa.pub
  6.  
  7. Config: /etc/ssh/sshd_config
  8. RSAAuthentication yes
  9. PubkeyAuthentication yes
  10.  
  11. For disable password for all user:
  12. ChallengeResponseAuthentication no
  13. PasswordAuthentication no
  14. UsePAM no
  15.  
  16. Reload ssh config:
  17. /etc/init.d/ssh reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement