Skip to content

Comment on Ask HN: How to regain access to my dedicated server?

Comments

Are you able to restart the box? If you have KVM access, you could restart it into single user mode (assuming it has not been disabled) and work from there

Hey thanks for your reply, I did restart the box, but once I open the console it does asks me for login/password

Can you send ctrl+alt+del through the kvm? if so, maybe this will cause it to restart so you can access the bootloader

Yes I was able to go trough and edit the kernel thanks a bunch, I thought I was in a bigger trouble!

OK, but what can you do after you get in through the bootloader?

If you are not able to boot it into recovery (could ask you for root password) you need to edit the kernel by editing "ro" (or "ro quiet ..." something) and changing it to rw init=/bin/bash .. than boot up by pressing [ctrl]+x and voila from there just change the root password via "passwd root" restart and ta daah root password changed

Add "single" to the kernel command line

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.