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

  1. Pingback: learn to sing well

  2. Pingback: Learn to Sing

  3. Pingback: ugg boots women

  4. Pingback: fs 2015 mods

  5. Pingback: buy traffic

  6. Pingback: Celebrity Feet

  7. Pingback: business communications

  8. Pingback: fiat 500 iphone4 dashboard connector

  9. Pingback: bandar judi online

  10. Pingback: epoxyclean

  11. Pingback: How to Make Extra Money Fast

  12. Pingback: mizuno volleyball shoes

  13. Pingback: Kids Martial arts Garden City

  14. Pingback: professional rug cleaning

  15. Pingback: Home inspection

  16. Pingback: polimer tv

  17. Pingback: dwaas

  18. Pingback: How to Attract Women

  19. Pingback: Shuttle Stuff Is St. Louis? online marketplace to buy and sell furniture

  20. Pingback: winter

  21. Pingback: Dance Music

  22. Pingback: mixtape hosting

  23. Pingback: Actresses

  24. Pingback: las vegas video production

  25. Pingback: sausage tree cream

  26. Pingback: real estate companies in Qatar

  27. Pingback: best natural products

  28. Pingback: Bitcoin Market Price CNY

  29. Pingback: USB Collar ID

  30. Pingback: theory

  31. Pingback: How to cure cancer

  32. Pingback: rolex watches sale

  33. Pingback: best replacement windows

  34. Pingback: Website

  35. Pingback: how to make money online

  36. Pingback: coffee sales

  37. Pingback: important builds

  38. Pingback: interior designs

  39. Pingback: Continue advices

  40. Pingback: outsourcing it gliwice

  41. Pingback: Continue Reading

  42. Pingback: free soccer predictions

  43. Pingback: no deposit bonus

  44. Pingback: related heats

  45. Pingback: post found things in india

  46. Pingback: Movers

  47. Pingback: Top Rated Natural Hair Loss Treatment

  48. Pingback: read uses

  49. Pingback: movies

  50. Pingback: next page

Leave a Comment

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