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: natural therapies

  2. Pingback: massage-naturiste

  3. Pingback: personal injury

  4. Pingback: Advance Auto Repairs

  5. Pingback: Fashion Styling Solution

  6. Pingback: Sport Center

  7. Pingback: NJ Limo

  8. Pingback: Real Estate Information Sharing

  9. Pingback: tattoos

  10. Pingback: Youth Football Highlights

  11. Pingback: Guldtetra

  12. Pingback: Business Counseling

  13. Pingback: exercise program

  14. Pingback: Slip and Fall Accident Lawyer Springfield Massachusetts

  15. Pingback: Dry Cleaning Naples

  16. Pingback: Real Estate Commersial News

  17. Pingback: Automotive Supplies and Products

  18. Pingback: Small Business Ideas

  19. Pingback: Environmental Technology

  20. Pingback: garage door lock

  21. Pingback: college tuition

  22. Pingback: awnings direct

  23. Pingback: Home & Property

  24. Pingback: Sell overseas property

  25. Pingback: joanna shields google

  26. Pingback: definition of healthy lifestyle

  27. Pingback: ?????? ??????? ??????????

  28. Pingback: drug addiction treatment

  29. Pingback: pest control hertfordshire

  30. Pingback: Entrepreneuer Best Advice

  31. Pingback: Business and Careers Resource

  32. Pingback: online store

  33. Pingback: zynga poker chips

  34. Pingback: free gems in clash of clans

  35. Pingback: Basslager Trap Music

  36. Pingback: Indiana marble

  37. Pingback: instagram like bot

  38. Pingback: iptv providers

  39. Pingback: guardianship in singapore

  40. Pingback: virtual goods

  41. Pingback: chilli

  42. Pingback: Clash of Clans Hack gems

  43. Pingback: Travel & Tourism Info

  44. Pingback: Business and Careers Resource

  45. Pingback: The Blackjack Crack System - Learn how to get an advantage at blackjack with this simple crack!

  46. Pingback: Home Design Inspirations

  47. Pingback: best hyip to invest

  48. Pingback: bag spotting

  49. Pingback: biomassa Lleida

  50. Pingback: katalog

Leave a Comment

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