I recently made a wrong manipulation on my server removing SSH access for everybody (root and users), then I lost my connection. So, impossible to connect to my server again to fix the problem. But there is a solution… the OVH Rescue Mode.
Ovh/Kimsufi manager
Log into your online OVH/kimsufi account then follow those instructions:
- Click on the NetBoot button
- Choose the Rescue Mode clicking on the Rescue button
- On the home page click on the Reboot button.
Your server will be rebooted in the Rescue Mode and you will receive (by email) a temporary root access password to repare your server.
Command line
Log into your server with the correct ssh command (and the temporary root password):
When connected with the rescue mode, you need to check your partition table to be able to mount the partition you need to repare:
With a simple fdisk -l
you will see your partition list:
Now you need to mount your partition with the correct file system:
Then you can take back control of your partition and retrieve your normal root user with:
You can now repare your partition and your configuration.
Restart in classical mode
Log into your online OVH/kimsufi account then follow those instructions:
- Click on the NetBoot button
- Choose the Hard drive mode clicking on the correct button.
- On the home page click on the Reboot button.
Congratulations !