User login

The Putty Problem...

and also to show that there really IS a collective...

Here's a solution to Using Putty SSH Keys to Authenticate Automatically

taken from : click here

The problem with setting this all up that I've had in the past is that the keys generated by PuttyGen don't seem to work by simply copying and pasting them into my .ssh/authorized_keys file. I've had other issues in getting this set up in the past which I won't get into, but they surround other versioning and configuration settings that I have for my particular ssh implementations.

The solution is very easy, and I found it on this Open SSH Installation guide. I wouldn't be surprised if it has made it's way into Simon's documentation, but back when I actually did RTFM, it wasn't there.

  • Step 1) Generate your Private/Public key using puttygen. (just run puttygen, you don't need instructions)
  • Step 2) Save your private key somewhere that makes sense.
  • Step 3) Save your public key to a file also that makes sense. You probably will want to have it around for other purposes later anyways.
  • Step 4) Open up an ssh session with putty. Paste your public key into a new file. (right click is paste in putty.) Paste the whole thing from ---- BEGIN SSH2 PUBLIC KEY ---- to ---- END SSH2 PUBLIC KEY ----
  • Step 5) Run this command:

    ssh-keygen -i -f putty-public-key > openssh-public-key

    where putty-public-key is your existing public key file and openssh-public-key is the file you want your newly transformed key to sit.

  • Step 6) Either copy the openssh-public-key file to ~/.ssh/authorized_keys OR append the key in that file to your existing ~/.ssh/authorized_keys file.
  • Step 7) Start up Pageant. Right click the icon in the task bar and choose Add Key. Once the key is added, start up putty and you are all set.
and also to show that there really IS a collective... Here's a solution to Using Putty SSH Keys to Authenticate Automatically
taken from : click here
The problem with setting this all up that I've had in the past is that the keys generated by PuttyGen don't seem to work by simply copying and pasting them into my .ssh/authorized_keys file. I've had other issues in getting this set up in the past which I won't get into, but they surround other versioning and configuration settings that I have for my particular ssh implementations. The solution is very easy, and I found it on this Open SSH Installation guide. I wouldn't be surprised if it has made it's way into Simon's documentation, but back when I actually did RTFM, it wasn't there.
  • Step 1) Generate your Private/Public key using puttygen. (just run puttygen, you don't need instructions)
  • Step 2) Save your private key somewhere that makes sense.
  • Step 3) Save your public key to a file also that makes sense. You probably will want to have it around for other purposes later anyways.
  • Step 4) Open up an ssh session with putty. Paste your public key into a new file. (right click is paste in putty.) Paste the whole thing from ---- BEGIN SSH2 PUBLIC KEY ---- to ---- END SSH2 PUBLIC KEY ----
  • Step 5) Run this command: ssh-keygen -i -f putty-public-key > openssh-public-key where putty-public-key is your existing public key file and openssh-public-key is the file you want your newly transformed key to sit.
  • Step 6) Either copy the openssh-public-key file to ~/.ssh/authorized_keys OR append the key in that file to your existing ~/.ssh/authorized_keys file.
  • Step 7) Start up Pageant. Right click the icon in the task bar and choose Add Key. Once the key is added, start up putty and you are all set.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.