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

  1. Pingback: seo Adelaide

  2. Pingback: seo Adelaide

  3. Pingback: seo Adelaide

  4. Pingback: seo Adelaide

  5. Pingback: sewer stoppage

  6. Pingback: pest control san antonio

  7. Pingback: Bleutrade - Crypto currency exchange!

  8. Pingback: Trade Account

  9. Pingback: helpful tips

  10. Pingback: here coffee

  11. Pingback: buy beastiality porn

  12. Pingback: youtube.com

  13. Pingback: Scalp protection

  14. Pingback: g-box midnight mx2 xbmc

  15. Pingback: happy new year cards

  16. Pingback: Charity Build-A-Bike

  17. Pingback: tworzenie sklepów internetowych

  18. Pingback: important

  19. Pingback: Buy Lego

  20. Pingback: stripper clothes

  21. Pingback: emergency food ration

  22. Pingback: desatascos en madrid

  23. Pingback: so good

  24. Pingback: Gatwick Heathrow Manchester Transfers

  25. Pingback: GTA 5 Walkthrough

  26. Pingback: antique

  27. Pingback: limo from boston logan airport

  28. Pingback: name rings

  29. Pingback: Goriani art

  30. Pingback: play mario

  31. Pingback: limo service boston logan airport

  32. Pingback: boston airport service

  33. Pingback: Ala Masrah Al Hayat

  34. Pingback: Ready To Watch Your Affiliate Profits Skyrocket?

  35. Pingback: FinestInn - Dubrovnik's most comprehensive travel and directory hub

  36. Pingback: netherlands vps

  37. Pingback: photographe mariage paris

  38. Pingback: The Laptop lifestyle is for me

  39. Pingback: oilpulling

  40. Pingback: nowyoudoit

  41. Pingback: make money online

  42. Pingback: zene videók

  43. Pingback: make money wth blogs

  44. Pingback: make money on the internet

  45. Pingback: Top Rated AZ Pool Builder

  46. Pingback: blog

  47. Pingback: money make

  48. Pingback: henning morales

  49. Pingback: How to Make Money With a Blog

  50. Pingback: living thoughts pw

Leave a Comment

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