Report this

What is the reason for this report?

Unable to access Droplet via SSH

Posted on February 6, 2026

I am not able to SSH into my droplets with my private keys. I am not sure what happened. – Server refuses the key.



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.

Hi there,

This usually means the SSH key isn’t being accepted by the Droplet, either because the wrong key is being used or the authorized_keys file on the server is missing or changed.

Double-check that you’re using the correct private key and user. If you recently recreated the Droplet or changed keys in the control panel, the old key won’t work anymore. https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/

If the server is refusing the key and you can’t log in at all, the Recovery Console is the fastest way to get back in. From there you can log in as root and check or fix ~/.ssh/authorized_keys, file permissions, or create a new user. https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/

Another thing to check is permissions. If ~/.ssh or authorized_keys has the wrong permissions or ownership, SSH will ignore the file entirely. This happens more often than people expect. https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-connectivity-issues/

If none of that helps, support can look at the Droplet and confirm what’s going on: https://do.co/support

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.