Should I give an SSH key or use a root password on my BuyMoneroVPS server?
Straight answer
SSH key or root password: which does BuyMoneroVPS use?
BuyMoneroVPS lets you choose at checkout. Paste an SSH public key and root logs in with that key only, password login off. Leave the field empty and a person sets a temporary root password, shown on the server page within 1 hour of your Monero (XMR) payment, to change at once with passwd. A key is the safer choice.
In brief
- The SSH key field at checkout is optional; it takes one line starting with ssh-ed25519, ssh-rsa or ecdsa-sha2.
- With a key, only your key opens root: no password is ever sent.
- Without a key, the root password is shown masked on the server page; change it at first login.
- You can add a key later by hand, or give a new one when you request a reinstall.
What changes between a key and a password?
| With an SSH public key | Without a key | |
|---|---|---|
| What you give at checkout | The line from your .pub file | Nothing: leave the field empty |
| How root logs in | Your private key only | A temporary password set by the team |
| Password login | Off | On until you turn it off |
| What the server page shows | The SSH command and your public key | The SSH command and the root password (hidden until you show it) |
| First thing to do | Connect | Run passwd, then ideally add a key |
| If you lose access | Reinstall with a new key (erases the disk) | Reinstall: a new temporary password is set (erases the disk) |
How do I create an SSH key for the checkout?
Run one command on your own computer, then paste the public half into the checkout. The checkout has a fold-out help, "How do I create an SSH key?", with the same commands. They work on Linux, macOS and Windows PowerShell; press Enter to accept the defaults.
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pubWhich part of the key do I paste, and which do I keep?
Paste the line from the file ending in .pub; keep the file without .pub on your computer and never paste it anywhere. The public line looks like ssh-ed25519 AAAA… you@laptop. BuyMoneroVPS's own checkout accepts three key types, ed25519, RSA and ECDSA, and rejects anything that is not one whole line: the field then asks for a public key that starts with ssh-ed25519, ssh-rsa or ecdsa-sha2.
Once the server is ready, its page shows the SSH command to copy and the note that only your SSH key can log in. Keep the private key safe and backed up: the team cannot recover it and never asks for it. Anyone who asks you for a private key, a wallet seed or your 16-digit account number is not BuyMoneroVPS.
What do I do with a temporary root password?
Log in once with it, then replace it at once with passwd. Without a key, the server page shows a card "Root login with a temporary password" with the password hidden behind a Show button. Connect with the SSH command shown, run passwd and type a new password twice. The temporary one then stops working, and nobody on the team knows the new one.
The page adds a safer step, worth doing in the first minutes: put your public key in /root/.ssh/authorized_keys, check that the key works in a second session, then set PasswordAuthentication no in /etc/ssh/sshd_config and reload SSH. Servers with an open password login attract constant guessing from the internet; a key removes that risk.
ssh [email protected]
passwd
mkdir -p /root/.ssh && chmod 700 /root/.ssh
nano /root/.ssh/authorized_keys # paste your .pub line, save
chmod 600 /root/.ssh/authorized_keys
# after testing the key in a new session:
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
systemctl reload ssh # the service is sshd on AlmaLinux and Rocky LinuxI lost my key or my password. How do I get back in?
Request a reinstall from the server page and give a new public key, or leave it empty for a new temporary password. The reinstall box has a field "New SSH public key". On a server ordered with a key, an empty field keeps the key you gave at the order. On a server ordered without one, an empty field means the team sets a new temporary root password, shown once the reinstall is done.
A reinstall erases the whole disk, so it is a last resort; the reboot, reinstall or delete guide explains the confirmation step. If the server page shows a "Control panel" card, its console works when SSH does not answer and may let you fix a lockout without erasing anything. Otherwise, write to support with the server ID.
Does the choice change delivery time or price?
No: both options cost the same and follow the same 1-hour build limit. The team creates the server with your system and either installs your key or sets the password; the delivery time guide gives the timings per coin. Every plan, from Ring 1 at $3.78 to Hub 24 at $32.44, gets root on a KVM machine with either method. The walkthrough of a Monero purchase shows where the access field sits in the checkout.
Frequently asked questions
Is the SSH key required at BuyMoneroVPS?
No. The field is optional. With a key, password login stays off; without one, the team sets a temporary root password and shows it on the server page.
Which key type should I use?
ed25519, created with ssh-keygen -t ed25519, is short and current. RSA and ECDSA keys are accepted too, as one line starting with ssh-rsa or ecdsa-sha2.
Can I add a second key later?
Yes, by hand: append another public line to /root/.ssh/authorized_keys on the server. The key shown on the server page is the one given at the order or at the last reinstall.
Does BuyMoneroVPS keep my root password?
The temporary password is shown on your server page until you change it. Once you run passwd, the new password exists only on the server: nobody on the team knows it.
Can I log in as a user other than root?
The server is delivered with root. Create your own user with adduser once logged in, give it sudo if you need it, and copy your key to it.
Verdict
- Give an ed25519 public key at checkout: root then opens with your key only, from the first second.
- No key at hand? The temporary password works, as long as you change it and add a key at first login.
- Losing access means a reinstall, which erases the disk, so back up your private key.
Order with your SSH key ready
Ring 2: 1 vCPU with 2 GB RAM on 40 GB NVMe for $5.51 a month, root over SSH.