Starting today, when I try to connect to my CentOS VM as root, using Putty, or indeed any SSH client, I can no longer login. The connection is made, but the login itself fails. I know for a fact that I am typing the correct password, because it works when I login directly to the VM itself.
Using a backup that I made a few weeks ago, I can SSH with no problems. This really only started happening today.
I've already made some research on this, and:
- my log files aren't updated with anything when the SSH login is failed
- during connection, using -vvv to get information on the login process, the only difference between my backup login and my current VM process is that, after I type my password, my current VM shows
debug3: receive packet: type 51
. That's it. It just keeps asking me for a password, over and over. - The
sshd_config
is properly set up, permitting root login and all.
Again, this worked perfectly fine yesterday, and looking at my command history I can't see much of anything that might have broken SSHD. Only cat
s and tail
s and at worst apachectl restart
s And the VM is locally hosted, only I have access to it because it can't be run while my PC is shut down.
I just don't get what happened. Did some file happen to get corrupted? Is this fixable whatsoever? My backup is missing some configs that I really don't feel like setting up again.
EDIT: Logging as a different user DOES work. I can then use sudo -i
to become root. It'll do for now, but I'm not marking this "solved" until I actually find the real solution.