Report this

What is the reason for this report?

How can I SSH to my already existing droplet if I don't have the original key?

Posted on June 13, 2019

I want to connect to my droplet through SSH but I don’t have the key it was created with. I have always been using the web based console.

how can I create a new key and connect through my terminal on my Mac?

Sorry if this is a basic question.



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.

Hello,

What you could do is:

  1. Reset your Droplet root password - you can do that through your digital ocean control panel.
  2. Then log in using the Droplet console to gain access to the Droplet’s SSH configuration.
  3. Enable password authentication by editing the SSH config and restarting the SSH service or add your new SSH key directly.

Actually there’s a step by step article on how to do that: https://www.digitalocean.com/docs/droplets/resources/lost-ssh-key/

Hope that this helps!

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.