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

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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:

Hope that this helps!