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: discount metal buildings

  2. Pingback: Dragon Boat

  3. Pingback: rid of cellulite

  4. Pingback: professional portrait photographers

  5. Pingback: instagram privacy

  6. Pingback: online

  7. Pingback: stay at home mom

  8. Pingback: sell my home

  9. Pingback:

  10. Pingback: sydney escort girl

  11. Pingback: english translations

  12. Pingback: best movie 2013

  13. Pingback: galatasaray vs akhisar belediyespor live stream

  14. Pingback: Dresdner Christstollen kaufen

  15. Pingback: psg streaming live

  16. Pingback: strona

  17. Pingback: buy twitter followers from australia

  18. Pingback: r?sultats euromillions

  19. Pingback: vinyl decals

  20. Pingback: Scott Ammerman River City Door

  21. Pingback: funny jokes

  22. Pingback: r?sultat euromillion

  23. Pingback: pictures

  24. Pingback: useful

  25. Pingback: related system

  26. Pingback: what you need to know about interviews

  27. Pingback: Dragon Cheat

  28. Pingback: toy products

  29. Pingback: dog walker

  30. Pingback: Joe Rogan Experience

  31. Pingback: kroken

  32. Pingback: check it

  33. Pingback: MuscleMeds

  34. Pingback: dropbox account

  35. Pingback: Blinds

  36. Pingback: the brain stimulator method video

  37. Pingback: Kids Fashion

  38. Pingback: click here

  39. Pingback: best protein

  40. Pingback: witryna firmowa

  41. Pingback: kliknij link

  42. Pingback: opieka poszpitalna wroclaw

  43. Pingback: kliknij

  44. Pingback: arayemek

  45. Pingback: How to create my own blog

  46. Pingback: Car Rental Manchester Airport

  47. Pingback: kliknij tutaj

  48. Pingback: Don't Buy From Gold mart

  49. Pingback: FCPX

  50. Pingback: reference

Leave a Comment

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