Victus Cloud / Support
VPS

Reset the root password

Change your Victus VPS root password from inside the machine, or reset it from the panel or rescue mode if you are locked out.

You should change the auto-generated root password after your first login, and you may need to reset it if you forget it. There are three routes depending on whether you can still get in.

If you have an active SSH session, changing the password is a one-liner. Run passwd and enter the new password twice.

passwd
# Enter new password:
# Retype new password:
# passwd: password updated successfully
Use a strong password

Root is exposed to the whole internet on port 22. Use a long random passphrase, or better, disable password login entirely and use an SSH key.

You are locked out — reset from the panel

  1. Log in to control.victuscloud.com and open the VPS.
  2. Go to the VPS Settings view and use the "reset / set root password" action.
  3. Enter a new password (or generate one) and apply it.
  4. The VPS agent applies the change on the running machine; reconnect over SSH with the new password within a minute or two.

Last resort — rescue mode

If the panel reset is unavailable, boot the VPS into rescue mode, mount the root filesystem and set the password with chroot. See the "Boot into rescue mode" article for the full procedure; the key step is:

# After mounting your disk at /mnt in rescue mode
mount /dev/vda1 /mnt        # your root partition may differ
chroot /mnt
passwd root
exit
Changing the disk device

On KVM the primary disk is usually /dev/vda and the root partition /dev/vda1. Run lsblk first to confirm the correct device before mounting.

Was this article helpful?

Still stuck?

Our team can help with your account or service.

Open a ticket →