Monday, February 29, 2016

Steps for passwordless authentication

1. Generate public key
$ ssh-keygen -t dsa

2. Copy over to remote host
$ cat ~/.ssh/ | ssh remote_host “cat >> .ssh/authorized_keys”

3. Test your connection
$ ssh remote_host

Should be able to login without any issue. If you have problem, check the permission on remote server's authorized_keys file.

No comments:

Post a Comment