Change Root Password

01

Change Root Password (When Already Connected)

Once inside server via SSH, run:

bash
passwd

You'll be asked to enter new password twice. Password won't be shown as you type: that's normal.

New password: Retype new password: passwd: password updated successfully

Choose secure password: at least 12 characters, uppercase, lowercase, numbers and symbols. Better yet, use SSH keys and disable password access.

02

Change Another User's Password

To change password of specific user (es. ubuntu, deploy):

bash
passwd username
03

Forgotten Password: Recovery from Panel

If you forgot root password and can't access via SSH, you can reset it from VNC console in client panel:

If you don't remember that either, contact support for reset via rescue mode.

  • Access client panel
  • Select your server
  • Click Console (VNC/NoVNC) to open direct access
  • Login (might require current password)
04

Reset Password via Rescue Mode

Rescue Mode boots server with temporary live system letting you mount disk and change password without accessing system:

bash
# Identify main partition
lsblk

# Mount disk (es. /dev/vda1)
mount /dev/vda1 /mnt

# Enter system with chroot
chroot /mnt

# Change password
passwd

# Exit and unmount
exit
umount /mnt

Disk name might vary (vda, sda, xvda). Use lsblk to identify correctly.

  • Access client panel → select server
  • Start Rescue Mode
  • Get temporary rescue credentials (sent via email)
  • Access via SSH to rescue, then mount main disk:
  • Return to panel and restart in normal mode

DeluxHost, founded in 2023, offers high-quality hosting solutions for various digital needs. We provide shared hosting, VPS, and dedicated servers with advanced security and global data centers.

© DeluxHost, All rights reserved. | VAT Number : IT17734661006
All Systems Operational