Connecting to server via SSH

July 5, 2018 1.4k views
Initial Server Setup Ubuntu 18.04

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!

1 Answer

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.

Have another answer? Share your knowledge.

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