My main droplet is hosting a few websites.
But today, suddenly (perhaps when I ran this command: “sudo update-rc.d nginx enable”) it stopped allowing me to login thru FTP or thru Bash/Terminal altogether. (FTP gives error: “server refused our key” even though I was logging in for a long time, and didn’t change any keys etc).
Now I’m only able to login thru Console. And the same password, which I’m using in console, isn’t working in bash terminal login.
Kindly help me, I’m comparatively new and my very imp websites are running on this droplet. I know all about ssh keys, their security permissions, WinScp etc. I’ve even checked my /etc/ssh/sshd_config file, and its all ok.
What can I do now so that it let me login normal way. Pls pls help.
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!
Hello,
I could suggest checking a few things:
systemctl status sshd
systemctl start sshd
netstat -plant | grep -i ssh
~/.ssh/authorized_keys file, using the cat command check the content of the file and make sure that it matches with your public key:cat ~/.ssh/authorized_keys
https://www.digitalocean.com/docs/droplets/resources/lost-ssh-key/
Let me know how it goes! Regards, Bobby
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.