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

Posted June 13, 2019 694 views
Control Panels

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.

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.

Submit an Answer
1 answer


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!

  • Thanks for the reply. I did that and was able to connect via my new SSH key. However it appears the reboot crashed my site. I think it disabled something in Rails. I get this error

    to unix:/tmp/unicorn.dropletname.sock failed (2: No such file or directory) while connecting to upstream,