Report this

What is the reason for this report?

Connecting to server via SSH

Posted on July 5, 2018

Hi -

I’ve created a new Droplet, using an SSH key that I generated via PuTTyGen, and I created my server using the public key. When I try to connect using PuTTy, and including my private key (on usernames root, and forge) I get the error:

Server refused our key

I’m assuming I’m missing the private keys on my server but, how am I supposed to connect to put them there if I can’t connect in the first place? Very confused!



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!

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.

Solved it, for anyone else, it’s because PuTTyGen provides you with the public key in the wrong format. You need to copy paste the public key from PuTTyGen itself, rather than the contents on the public key file.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.