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
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.