Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop

In this Discussion

New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How To Restore Your Linux Server Password in OVH Or Hetzner

are you loss your linux server root password and You can not log on to your server and your server in datacenter ovh or hetzner

don't worry

i will tell you step by step how to restore your root password ,

1- log into your datacenter control panel and boot your server in rescue mode

2- after your server booted see if your HDD is mounted or not (you can use df command)

3- if your HDD not mounted create new Directory and mount your / Partition

mkdir /root/myhdd

mount /dev/sda2 /root/myhdd

4- change you root directory

chroot /root/myhdd

5- Now You change your root Password :

passwd root

6- enter your new password and reboot server in normal mode

Have a Nice Day !

Thanked by 1PaddiM8

Comments

  • It's not always /dev/sda2 - also, I'd expect somebody with a dedicated server to know this (and to not 'forget' their root password either, honestly.)

Sign In or Register to comment.