Disabled root ssh access, lost user password, any way around it?
I think I know the answer to this but I hope I'm wrong. I've disabled root ssh, but the password for the user has been lost so can't su or sudo. Is there anyway to reenable root ssh access or reset the user password?
Even in Rescue mode and LISH I can't see a way around. Any help is much appreciated.
2 Replies
You can always login as root at the (lish) console. You’ll need the password though.
Do you have any users with sudo access? If so, login as one of those (ssh or lish console); enter su & that user’s password; and shazam! you’re the root user!
— sw