Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
All other users, except root, are able to login thru FTP and Bash terminal.
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).
I’m just striking my head to the wall, but nothing is coming to mind.
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.×