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

June 13, 2019 283 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.

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, 
Have another answer? Share your knowledge.