Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Generate key: (into .ssh/id_rsa and .ssh/id_rsa.pub - this file is for public)
- ssh-keygen -t rsa
- And copy this key: and add to (.ssh/authorized_keys our server)
- cat .ssh/id_rsa.pub
- Config: /etc/ssh/sshd_config
- RSAAuthentication yes
- PubkeyAuthentication yes
- For disable password for all user:
- ChallengeResponseAuthentication no
- PasswordAuthentication no
- UsePAM no
- Reload ssh config:
- /etc/init.d/ssh reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement