password-less login

A quick reminder on how to be able to (secure) login from a PC to others.

From the PC, run

ssh-keygen ,

and choose the defaults (just hit enter). Some random artwork is returned, too (??). Then,transfer the file with the public fee to the destination PC:

scp .ssh/id_rsa.pub orwell2:

Them, ssh to the desired PC, with your password (for the last time!):

ssh orwell2

Finally, add the file to the list of authorized keys:

mkdir .ssh (may be there already)

cat id_rsa.pub >> .ssh/authorized_keys

rm id_rsa.pub

exit

Test it: a simple repetition of ssh orwell2 should login with no password!

One thought on “password-less login

  1. Pingback: password-less login | Sobre el cluster "orwell"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s