Trouble with SSH key pairs windows client

Hi all, Trying to set up SSH key pair access to my droplet using PuTTy on Win7 and just about ready to open a vein :( Here are the steps I followed.

  1. Generate key pair in PuTTyGen
  2. Use the public key value in the generated key box and paste into authorized_keys on my server. (If you click save keys you get the PuTTy format.)
  3. Conversions - Export OpenSHH key
  4. Add this key under SSH - Auth in the PuTTy profile set-up.
  5. Restart SSH on droplet
  6. Try to connect in PuTTy. I always get Unable to use key file …

Is there not an OpenSSH utility for windows that creates compliant, industry standard key pairs out of the box?

Thoughts appreciated. :)

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I had… er … ahem … created the .ssh folder in the wrong place. /.SSH instead of $HOME/.SSH…oh deary deary deary deary me. What a chump. Upside is I got to hear about Xshell :) <br> <br>Thanks again! <br>

Just had a thought (oh no). This should be SSH1 right?

Hi. Thanks for the Sunday reply :). <br> <br>Right, just tried saving the private key from the PuTTy save dialog. Got a different error: “server refused our key”. Have restarted SSH daemon on droplet. <br> <br>Key looks like this <br> <br>PuTTY-User-Key-File-2: ssh-rsa <br>Encryption: none <br>Comment: rsa-key-20140601 <br>Public-Lines: 4 <br>AAAAB3NzaC1yc2EE/tSY2c=… etc <br>Private-Lines: 8 <br>AAAAgQC7WTuh6UCNbfRR1v5gYQZVQPB69+vG0tSf2acnyFtd75uweGGS/tAinS6a …etc <br>Private-MAC: 0069bc… etc <br> <br>Anything jump out? <br> <br>If nothing obvious is wrong with that structure, I’ll try it with xshell. <br>Cheers.