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
Permission denied (publickey)
Yesterday i was connected to my droplet via SSH as usual, doing my work.
Then i has issues with zsh so i removed it to use the default console:
sudo apt-get --purge remove zsh
Then I exited and now I can’t connect anymore.
Via SSH I get the “permission denied” error.
Via web console it looks like the login worked (I see the welcome screen for a second), and then it goes back to the login screen again.
Right now i have no way to log in. I tried re-adding the SSH key via dashboard and it says that the SSH key is already installed, so that’s not the problem (but i knew it).
I believe that after removing zsh now i don’t have a default shell.
What could I do??
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.×