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
Access Console kicks out with no errors!
Here is my problem: http://imgur.com/I4lAxKU
I have a LEMP on Ubuntu 14.04 droplet that has our main website/system on it and still we are using it everyday. I have done many configurations to this droplet but the important are these:
- The password authentication is off on the droplet and only ssh key authentication is on
- Permit root login is off so only my second user can access with the ssh key
- default port is not 22 and is 17
- I think (not sure) I have also disabled the root in somewhere. I think it was like deny users root or something like that
Hard drive failed on my laptop and I have no backups on the ssh key! So I searched online and I found that there is 2 ways. The first one is that I take a snapshot and create another droplet and access the new droplet and the only thing that happens is that the ip address will change and life is good. The second way is that I reset my root password from the control panel or if that does not work, I request for ISO recovery from the support team and try to change some settings in there and then reset the root password.
I have asked for the ISO recovery and I have accessed my data to reconfigure the sshd_config file. I have set the permit root login to yes and also I have commented out the line that sets the password authentication to no.
After changing the setting I have asked the support team to unmount the ISO recovery so that I can try from Console Access. And when I enter root for username and the new password for the password prompt, this is what happens: http://imgur.com/I4lAxKU
It logs in and right after 1 second or less, it kicks me out and ask for the username and password again.
By the way the default port is still 17 and I did not change it to 22 because I don’t think that is the problem. If that was a problem, why the server is responding and on top of that why it logs me in.
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.×