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…

5,005 Comments

  1. Pingback: reference decor

  2. Pingback: silk road 2

  3. Pingback: 4 corners group

  4. Pingback: professional cosmetic brushes

  5. Pingback: corrupcion Panama Unibank

  6. Pingback: Edmundo Tinnin

  7. Pingback: law firms

  8. Pingback: Large plaid blanket scarf

  9. Pingback: escort agency directory

  10. Pingback: Unibank Panama corrupcion

  11. Pingback: blankets and throws gifts

  12. Pingback: helpful clean

  13. Pingback: tips maintain

  14. Pingback: howaylin

  15. Pingback: netrahkar.net/

  16. Pingback: site relocation

  17. Pingback: life coach for free

  18. Pingback: love & hip hop season 5 episode 1

  19. Pingback: wellness

  20. Pingback: learn sax

  21. Pingback: Dance the night away in the best Arizona night life with some of the best clubs and lounges in town.

  22. Pingback: gas engineer job

  23. Pingback: proxy youtube

  24. Pingback: Click here

  25. Pingback: zahnarzt heidelberg

  26. Pingback: buy quality backlinks

  27. Pingback: important

  28. Pingback: twitter

  29. Pingback: music download sites free

  30. Pingback: social media management

  31. Pingback: Moving Company Wellington

  32. Pingback: download songs

  33. Pingback: iphone 5 cable

  34. Pingback: skuteczna depilacja

  35. Pingback: najcudowniejsze wyzywienie w Krakowie

  36. Pingback: saratoga

  37. Pingback: Clases

  38. Pingback: Barnett RAZR Review

  39. Pingback: proxy 80

  40. Pingback: googleable proxies

  41. Pingback: credit card processing terminal

  42. Pingback: koto anau

  43. Pingback: oferta

  44. Pingback: dormire a Ferrara

  45. Pingback: witryna www

  46. Pingback: http://poseidonpharma.com

  47. Pingback: witryna

  48. Pingback: zobacz tutaj

  49. Pingback: 4 corners review

  50. Pingback: Practical live models

Leave a Comment

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