All was ok. I could login as a normal user or root, thru SSH method or password, on FTP or Bash/Terminal (on Win10 pc).
Then today I was working on some wordpress permissions. Then I found that nginx wasn’t starting upon droplet/server reboot. I gave 1-2 nginx commands and rebooted.
But after that, I’m no longer able to login as root over FTP or Bash Terminal. Thru ssh keys method or password. Error comes: “Permission Denied. Pls try again”. Although, I’m able to login as root in console, with the same root’s password. And I’m able to login in FTP or Bash as another user. Also I’m able to login as root in another droplet with the same ssh keys which are already uploaded in my DO control panel and whose pvt keys are lying there in my same local pc.
That is/The scene becomes: pvt keys on my local pc and public keys on remote host are ok, because I’m able to login to another droplet on the same DO account.
Root pw is ok, because the same pw is working thru console. (moreover, when I login as another user in bash, then inside there I switch to root, then the same root password works and I become root there).
sshd_config files all options seem to be ok, because I can login as another user (and I’ve checked all 3-4 relevant options manually also).
Kindly help. I’m just striking my head to the wall, but nothing is coming to mind.
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!
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!