Can not login via ssh after creating a droplet from snapshot

Hi all I have created a snapshot from an existing live droplet After creating I can not login via ssh. When I type cat /etc/shadow I see taht many accounts have been blocked. redis:!!.. So I can login from digitalocean console but can not login centos web panel or plain ssh


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.

Hi @trmstf816d0e713d0e94e66cad,

Root shouldn’t be blocked, so I’ll recommend sshing from that. Afterwards, you can enable shell for the needed accounts. As for redis, I can confirm it doesn’t need a login.

To connect with root, you can add your SSH Key to the droplet and then SSH .

As for another users, you’ll need to edit your sshd_config for that.

$ sudo vi /etc/ssh/sshd_config

Add or edit the following line

AllowUsers users

Replace “users” with your username. You can also specify more than one user as shown below.

AllowUsers sk newUserName

Once, you’ve allowed/enabled SSH for the needed user, save the file and restart sshd

sudo systemctl restart sshd

Regards, KDSys