can't access droplet through ssh nor through console

I created a Fedora droplet and added my machine’s public SSH Key (that I happen to use for other services and which seems to work well with other services) to it before creation. After creation I cannot access it via ssh, I get the following message:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I tried to connect to it via console but I get prompted for login and password. I think I should have received them by email or something like that, but I received no email whatsoever. what to do?


Submit an 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.

Accepted Answer


If you added a public key to your DigitalOcean account and selected that public key during the deployment of your Droplet, you won’t receive a root password as password authentication is disabled when SSH keys are used.

You would need to login and pass the private key associated with the public key you provided.

ssh root@droplet_ip -i /path/to/privatekey

The above works on MacOS and Linux, though if you’re using Windows and PuTTy, you’d need to set the path to your private key in the configuration settings for putty.