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

  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: reclaimanyppifast.com

  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 *