Sunday, January 15, 2012

Passwordless SSH login Tutorial

$ ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/home/bigbang/.ssh/id_rsa):
(Enter)
Enter passphrase (empty for no passphrase):
(Enter)
Enter same passphrase again:
(Enter)


# this creates a file ~/.ssh/authorized_keys
$ ssh-copy-id user@192.168.1.217
user@192.168.1.217's password:
(Enter Password)

Now test login in via ssh. It will not ask for the password






No comments:

Post a Comment