WHY I can't login with SSH key after create droplet from snapshot?

I’ve created a droplet using a snapshot from the old droplet. (use ssh same as existing droplet) But I can’t log in with the same credentials. But I’m able to log in control panel’s access console. (I’ve checked with ufw status. But found not an issue) But I need to login in with that same credentials to use as SFTP login in WinSCP. After log in my old droplet there shows Your LAMP website: . But after login in access console in the newly created droplet (snapshot of old one), there is nothing like that. I think it will show up the ip of the droplet where I can see doplet default page (http://ipaddress/index.html) But I can’t found any ip see screenshot.

plz let me know why this is happening? and better way to do my task (clone droplet) advance thanks.

see image

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.

Hello, @alaminShark

What you can do is to check if your ssh_key is added in the authorized_keys file on your new droplet. You can access the droplet via the console in your DigitalOcean account and from there cat the file:

```cat ~/.ssh/authorized_keys``

If your ssh key is not present then you can add it by following this tutorial:

If you’re still experiencing some issues to access the droplet via a ssh client you can double check if the Droplet is not blocking connections on port 22 by using telnet for example:

telnet IPaddr 22

As for your other question, the best way to clone your droplet is to use the snapshots option (basically what you’ve done). The content of your new droplet should be identical to your production one. If you see some differences, I will recommend you to take another snapshot and repeat the process again.

Regards, Alex