Monday, August 2, 2010

SSH password less authentication

SSH use to login from one PC to another without supplying the passwords.

# ssh-keygen -t rsa (Press Enter)

Generating public/private rsa key pair.
Enter file in which to save the key (/home/skx/.ssh/id_rsa): (Enter)
Enter passphrase (empty for no passphrase): (empty)
Enter same passphrase again: (empty)
Your identification has been saved in /home/skx/.ssh/id_rsa.
Your public key has been saved in /home/skx/.ssh/id_rsa.pub.

# ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote_host - IP Address

1 comment: