More on SSH passwordless login (using RSA/DSA key)

After experimenting with my Nokia E61 and putty, I just found out a better way to add the public key to remote servers. This assume that you’re using a linux box as a client.

On your local computer, type:

$ssh-keygen -t rsa

Note: Just press “enter” for every question for truly passwordless login

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

Once your RSA key-pair is generated, you need to add the public key to your server’s ~/.ssh/authorized_keys file. You can do this very easily by typing (on your local computer):

$ssh-copy-id ~/.ssh/id_rsa.pub username@example.com

it will ask for “username” password on host “example.com”, the next connection will be passwordless

username@example.com:

Now try logging into the machine, with “ssh ‘username@example.com'”, and check in:

.ssh/authorized_keys

to make sure we haven’t added extra keys that you weren’t expecting.

kramfs@mobile1:~/.ssh$ ssh username@example.com

Last login: Wed Feb 6 14:00:44 2008 from 192.168.1.50

As you can see, it did not ask me for my password anymore since the authentication was done via the RSA/DSA key.

Enjoy…

1,042 Comments

  1. Pingback: X-Men

  2. Pingback: Garcinia Cambogia Dr Oz

  3. Pingback: http://yezhan8.net

  4. Pingback: http://confizym.com

  5. Pingback: http://aaadesignsforweb.com

  6. Pingback: http://aahost4u.com

  7. Pingback: http://caldastotal.com

  8. Pingback: design my tattoo

  9. Pingback: http://avisovswitch.com

  10. Pingback: www.americanshifter.com

  11. Pingback: vacation homes for rent mexico

  12. Pingback: http://biteireland.com

  13. Pingback: http://kahikohotel.com

  14. Pingback: http://bible-ink.com

  15. Pingback: http://prejean.net

  16. Pingback: http://wembleystadium.net

  17. Pingback: http://standupshots.com

  18. Pingback: Usenet kostenlos

  19. Pingback: Elie Saab

  20. Pingback: http://synergyecommerce.com

  21. Pingback: http://gennumsemi.com

  22. Pingback: http://pcrf-espanol.net

  23. Pingback: http://montgomerytopics.com

  24. Pingback: http://insideglacier.net

  25. Pingback: http://heiahusky.com

  26. Pingback: http://brandtology.net

  27. Pingback: http://images-glyde.com

  28. Pingback: Cb01

  29. Pingback: http://coheris.net

  30. Pingback: http://walch-praxis.com

  31. Pingback: http://estanbulcafe.com

  32. Pingback: http://stand-up-stand-up.com

  33. Pingback: http://attitude-media.com

  34. Pingback: boost your business

  35. Pingback: sell your bitcoin

  36. Pingback: midnight android

  37. Pingback: http://thietkewebflash.com

  38. Pingback: http://reseau-smi.com

  39. Pingback: http://meliodicmusic.net

  40. Pingback: http://andalucia-innovacion.net

  41. Pingback: http://yubikeystore.net

  42. Pingback: http://theredarrows.net

  43. Pingback: Diabetes Miracle Cure Guide

  44. Pingback: Unibank Panama corrupcion

  45. Pingback: http://meliodic.net

  46. Pingback: http://gridtestsystems.com

  47. Pingback: http://indopaperasian.com

  48. Pingback: http://maximator-italy.com

  49. Pingback: http://langlangcenter.com

  50. Pingback: http://eksibirartibir.com

Leave a Comment

Your email address will not be published. Required fields are marked *