Regaining Access to droplet thorugh SSH, after original ~/.ssh directory is gone

Posted February 2, 2021 87 views
Let's Encrypt

Hey, i can access to my droplet through DO console,
in DO/Settings/Security/SSH, there is ssh key with fingerprint,
but my original id_rsa files are lost.

Is there a way, that i can get to droplet from my terminal again?

so far i get

$ sudo ssh
The authenticity of host ' (' can't be established.

ECDSA key fingerprint is SHA256:zxczxczxczxczxczxczxcx
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts. Permission denied (publickey).

Thank You

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.

3 answers

Hi there @sobeit2020,

Yes, you can regain access to your Droplet by following the steps from this page here:

Let me know how it goes.

Hello, @sobeit2020

You can create a new pair of ssh-keys and then upload them to the droplet.

You can check these two articles:

Hope that this helps!

Works, thanks for great support

Submit an Answer