advanced search 
Wednesday, July 03 2024 @ 12:59 AM EDT
   

ssh - configuring passwordless logins

HowTo

This is a quick reference for setting up public keys in ssh so you don't have to constantly type your password in front of prying eyes and hungry keyloggers.



Step 1:

Create a key pair if you dont already have one.  Most ssh clients should now support RSA keys which will be located in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub

The command to create a new key pair is:  ssh-keygen -t rsa  just accept the defaults and leave the passphrase blank since were setting up passwordless access.

Step 2:

Copy your key to the remote system  ssh-copy-id -i ~/.ssh/id_rsa.pub user@othersystem 

Step 3:

Test it  ssh user@othersystem and it should connect you without prompting for a password.

If it doesn't work then check your ssh config file  /etc/sshd/ssh_config  and be sure that you have both RSAAuthentication and PubkeyAuthentication set to yes

What's Related

Trackback

Trackback URL for this entry: http://www.empirelinux.org/trackback.php?id=20091205051526257

No trackback comments for this entry.
ssh - configuring passwordless logins | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.