Question

Unable to SSH to a newly restored snapshot

I am unable to SSH to a droplet D1 created from a snapshot S1. That snapshot S1 is created from a droplet D2 that is still running and that I can SSH to.

When I created D1 I provided a different hostname than D2’s. However, when logging into D1 via the Recovery Console (as root), I see that D1 still has D2’s hostname.

I have tried restoring another droplet D3 from another snapshot S2 (made from droplet D4), and that droplet D3 I can SSH to just fine. Also, D3 has the hostname that I provided during droplet creation and not the hostname of D4. So, for D3 everything works as expected.

The sshd_config is exactly the same on D1, D2, D3, D4.

Why cannot I SSH login to D1?

Subscribe
Share

Submit an 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 is the exact error that you get when you try to SSH?

During the creation of the new Droplet, did you specify your SSH key? If not you would need to add it by following the steps here:

https://docs.digitalocean.com/products/droplets/how-to/add-ssh-keys/to-existing-droplet/

Best,

Bobby