Question

Connecting to server via SSH

Posted July 5, 2018 1.5k views
Initial Server SetupUbuntu 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!

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.

×
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.

Submit an Answer