Friday, October 19th, 2007

Creating Private/Public SSH Keys

13th May 2008 Update: I have removed the original contents of this post. Normally I would not remove the contents of any blog post; however, due to security reasons I did not want anyone to follow the instructions that were contained within the post. I have updated the information about creating passwordless SSH keys and moved it to my wiki, it is probably better off there anyway ;) See:

Sorry for any inconvenience this may have caused.

Tagged with: bash, linux, ssh, ubuntu


5 Responses to “Creating Private/Public SSH Keys”

  1. BostonPeng wrote,

    When I try to do this I get an error on the very first command

     peng@foo:~$ ssh-keygen -t dsa -b 2048 -f ~/.ssh/id_dsa
     DSA keys must be 1024 bits
    

    Should I run it with 1024 bits or is there a trick to using 2048 bits?

  2. Philip wrote,

    BostonPeng, looks like something has changed since the Feisty. This used to work fine, I'll do some investigating and report back. Meantime, 1024 should be fine.

  3. BostonPeng wrote,

    Cool. That's what I ended up using. And when people come here from my blog they'll see that's fine too.

    Thanks for getting the word out to us on this one. I don't know that I would have realized what the advisory meant to me.

  4. Philip wrote,

    BostonPeng, I have just realised that this post was actually related to creating a key pair without a password and for use specifically with scripting. If this is what you are wanting to do then great, otherwise I would advise you to follow the instructions on the Ubuntu wiki.

    I have updated the original post to link to the Ubuntu wiki. Sorry for any inconvenience.

  5. BostonPeng wrote,

    Thanks for the correction. I'll recreate my keys with the updates I got this am and with the info on the wiki.

Add Your Comment

Use the form below to add your comment. Markdown syntax is available. Note, comments are moderated by me for spam filtering. Alternatively, feel free to contact me privately.