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. Antony

    My Granddaughter is into making beaded earrings.

  2. mens health

    Useful information. Lucky me I found your website accidentally, and I’m shocked why this accident didn’t came about earlier!
    I bookmarked it.

  3. Estelle

    The farmers also tend to various types of palm trees.

  4. define guide

    Hi, its pleasant piece of writing concerning media print, we all be familiar with media is a impressive source of data.

  5. Karissa

    For those who plan on promoting your polymer clay jewelry,
    you could want to begin fascinated by how you intend on packaging your jewelry.

  6. Renato

    KTD Group ‘s.r.u. stylists say that a diamond durant is justifiably labeled as celebrity jewelry, as a result of
    it’s an integral a part of nearly every public occurrence.

  7. Keesha

    For example, it’s better to wear a easy pearl necklace with
    one pendant or in single strand for common garments. The single color is nice,

  8. Anglea

    Hiya very nice website!! Guy .. Beautiful ..

    Wonderful .. I’ll bookmark your blog and take the feeds
    additionally? I am glad to seek out a lot of useful information right here within the post, we’d like work out extra
    strategies in this regard, thank you for sharing. . .
    . . .

  9. chevrolet trailblazer

    A person necessarily help to make significantly articles I’d state.

    That is the first time I frequented your website page and so far?

    I surprised with the research you made to make this
    particular post extraordinary. Magnificent task!

  10. Teena

    Thankfulness to my father who told me regarding
    this weblog, this blog is truly remarkable.

  11. legalization of weed in california

    Hello, Neat post. There’s a problem along with your site in web explorer, might test this?
    IE nonetheless is the market leader and a good portion of folks will miss your wonderful writing
    because of this problem.

  12. baby stroller reviews

    Today, I went to the beach with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear
    and screamed. There was a hermit crab inside and it pinched
    her ear. She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

  13. chevrolet captiva

    Hello, i think that i saw you visited my website thus i came to “return the favor”.I’m attempting
    to find things to enhance my site!I suppose its ok to use a few of your ideas!!

  14. lending money with interest

    I ?ll the time used tto studsy paragraph ?in news papers but no? as I am a
    us?r of inte?net thus fr?m now I am using net for articles or
    rev?ews, thanks to web.

  15. click for more info

    Hello all, here every person is sharing such knowledge, therefore it’s nice to read this website,
    and I used to pay a quick visit this weblog every day.

  16. best place to buy runescape gold

    Simply wish to say your article is as amazing. The clarity in your submit is simply cool and that i can think you are a professional on this subject. Fine together with your permission let me to grab your RSS feed to stay updated with forthcoming post. Thank you one million and please carry on the enjoyable work.

  17. runescape 2007 gold

    Hey just wanted to give you a quick heads up and let you know a few of the images aren’t loading properly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome.

  18. sex toy

    Do you have a spam issue on this website; I also am a blogger,
    and I was wanting to know your situation; many
    of us have created some nice methods and we are looking
    to exchange solutions with other folks, please shoot me
    an email if interested.


Leave a Comment

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