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/

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/

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

Now try logging into the machine, with “ssh ‘'”, and check in:


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

kramfs@mobile1:~/.ssh$ ssh

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

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



  1. Pingback:

  2. Pingback: http://

  3. Pingback:

  4. Pingback:

  5. Pingback:

  6. Pingback:

  7. Pingback:

  8. Pingback:

  9. Pingback:

  10. Pingback:

  11. Pingback:

  12. Pingback: the holistic sanctuary cost

  13. Pingback: Snussats

  14. Pingback: Johnny The Healer Reviews Complaints

  15. Pingback: the holistic sanctuary reviews

  16. Pingback:

  17. Pingback:

  18. Pingback:

  19. Pingback:

  20. Pingback:

  21. Pingback:

  22. Pingback: Zanizbar Beach

  23. Pingback:

  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 *