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,011 Comments

  1. Pingback: http://blockexplorer.info

  2. Pingback: http://http://gridtestsystems.com

  3. Pingback: http://gridtest.net

  4. Pingback: http://coastalfutures.net

  5. Pingback: http://fotodovana.com

  6. Pingback: ireport.cnn.com/docs/DOC-1203373

  7. Pingback: http://youth-delphics.com

  8. Pingback: http://chevysalexandria.com

  9. Pingback: http://gazifotonik.com

  10. Pingback: http://qatarembassyjo.com

  11. Pingback: http://edicionesbellaterra.com

  12. Pingback: the holistic sanctuary cost

  13. Pingback: Snussats

  14. Pingback: Johnny The Healer Reviews Complaints

  15. Pingback: the holistic sanctuary reviews

  16. Pingback: http://myc4l.com

  17. Pingback: http://kawakubolab.com

  18. Pingback: http://adkupo.com

  19. Pingback: http://petinsurancetrial.net

  20. Pingback: http://ndesteem.com

  21. Pingback: http://green2all.net

  22. Pingback: Zanizbar Beach

  23. Pingback: http://spokesmandirectory.com

  24. Pingback: seo services maharashtra

  25. Pingback: henning morales

  26. Pingback: computer repair raleigh

  27. Pingback: All in One Entertainment

  28. Pingback: fast

  29. Pingback: jual rda veritas

  30. Pingback: online market bilgi teknolojileri ticaret a.?

  31. Pingback: frasercentrpoint

  32. Pingback: make money at home

  33. Pingback: weight destroyer download

  34. Pingback: solo ad buyers

  35. Pingback: zobacz tutaj

  36. Pingback: subscription boxes

  37. Pingback: witryna firmowa

  38. Pingback: witryna

  39. Pingback: Home & Property

  40. Pingback: personal trainer las vegas

  41. Pingback: advertise my business

  42. Pingback: Business and Marketing

  43. Pingback: Network Marketing

  44. Pingback: Sexiest Bikini body

  45. Pingback: Auto Care Experts

  46. Pingback: Business Idea

  47. Pingback: RateYourDemo

  48. Pingback: Leisure Travel Guides

  49. Pingback: Real Estate Agent

  50. Pingback: metabolic syndrome diet

Leave a Comment

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