Don’t lose access: backup keys and passwords
How access paths to the machine are structured, why a second SSH key is needed, where to store the root password, and what to do if the only key is lost.
Updated August 23, 2026
Losing access to your machine happens more often than a hack. A laptop breaks, you reinstall the OS, you wipe the .ssh directory, you forget the password. The difference between “annoying” and “a disaster” is whether you prepared a second way in ahead of time.
Three ways in
| Path | How you open it | When it works |
|---|---|---|
| SSH | Key or password | As long as the network is up and sshd is configured |
| Console in the panel | root password | Always, even when the network never came up |
| Rescue disk | No password, root login | Always, even when the system won't boot |
The second and third paths don't depend on your SSH or firewall settings — which is exactly why you can never lock yourself out of a Millida VDS machine for good. But to use them you need access to your Millida account and the root password.
A second SSH key
The key list in the “Access” tab of the panel at /hosting/vds/m/<id> is replaced as a whole. Add both at once: the working one and the spare.
ssh-keygen -t ed25519 -C "work laptop"
ssh-keygen -t ed25519 -f ~/.ssh/id_backup -C "spare"
cat ~/.ssh/id_ed25519.pub ~/.ssh/id_backup.pub
Keep the spare key somewhere other than the primary one: a password manager, an encrypted archive, a USB stick in a drawer. A key on the same laptop as the primary one is not a spare.
Test both keys right after adding them:
ssh -i ~/.ssh/id_backup root@<address>
An untested spare key is not a spare key.
The root password
It's stored encrypted and shown when you click a button in the “Access” tab. Copy it into a password manager: during an emergency, opening the panel and clicking the button won't always be quick, and typing a long string into the VNC console is awkward.
The password still works for the console and for su - even after you disable root SSH login.
What to store separately from the machine
- Private SSH keys and their passphrase.
- The root password.
- Access to your Millida account and its second factor.
- Login credentials for your domain registrar and DNS.
- Database dumps and configs: we don't make automatic backups of your machine — you make the copies yourself.
A simple way to regularly push data offsite:
pg_dump -Fc mydb > /root/dump.pgc
rsync -az /root/dump.pgc backup@other-machine:/backups/
If you do lose access
- You lost the key but still have the root password — log in through the panel console and add a new key to
~/.ssh/authorized_keys. - You forgot the password too — click “Change password” in the “Access” tab. The panel will issue a new one and reboot the running machine.
- The system won't boot — enable the rescue disk, mount the disk and fix the keys or password in chroot.
- You lost access to your Millida account — recover it through the standard procedure; a machine can't be handed over without an account, and that protection works in your favor.
Common mistakes
- A single key on a single device with no copy.
- The spare key stored next to the primary one.
- You replaced the keys in the panel and wiped the working one: the list is replaced as a whole, so paste all of them at once. This also saves you an extra reboot — every key save restarts the running machine.
- The key passphrase isn't written down anywhere.
- The root password has never been tested in the console.
Run a drill once a quarter: log in with the spare key and test the root password through the console. Five minutes of checking saves you an evening of recovery.