On this page
What you need
Sign in with your password
Type exit to leave. Programs you start in that session stop when it closes, unless you run them as described in keep jobs running.
Switch to an SSH key
An SSH key is a pair of files: a private key that stays on your computer and a public key you put on the server. It is much harder to guess than a password, and you never type it.
Save a shortcut
Add the server to ~/.ssh/config on your computer (on Windows, C:\Users\you\.ssh\config), creating the file if it does not exist:
Host quantvps HostName 203.0.113.10 User root IdentityFile ~/.ssh/id_ed25519
Now ssh quantvps is enough.
Lock it down (optional)
Once your key works, you can turn off password sign-in so only keys get in. Keep your current session open while you do this, and test from a second terminal before you close it.
grep -rn PasswordAuthentication /etc/ssh/sshd_config /etc/ssh/sshd_config.d/Set PasswordAuthentication no in /etc/ssh/sshd_config and in any file the search found in /etc/ssh/sshd_config.d/ (a file there can override the main one), for example with nano. Then check the configuration and restart SSH:
sshd -tsystemctl restart ssh
To add a firewall, allow SSH first, then turn it on:
ufw allow OpenSSHufw enable
Copy files, keep jobs running
Copy a file from your computer to the server's home folder with scp (add -r for a folder):
scp ./bot.py root@203.0.113.10:~/To keep a script running after you disconnect, start it inside tmux, then detach with Ctrl+BD and reattach later. Install it with apt install tmux if it is missing. Start a session named bot:
tmux new -s botAfter you sign in again, reattach to it:
tmux attach -t botFor a bot that must survive reboots, run it as a systemd service. Our Linux trading VPS page covers what else the server is built for.
Fix common errors
- Connection timed out
- Check the IP address, and that the server shows as online in the Control Panel (a reinstall takes a few minutes). A firewall rule that blocks port 22 has the same effect.
- Connection refused
- The server answered but SSH is not listening on that port: SSH was stopped, or its port changed. Connect with ssh -p and the right port, or contact support.
- Permission denied (publickey,password)
- The username or password is wrong, or passwords are off and your key is not installed. Copy the details from the Control Panel instead of typing them.
- REMOTE HOST IDENTIFICATION HAS CHANGED
- Expected after a reinstall: the server has a new key. Remove the old one with ssh-keygen -R 203.0.113.10 (your IP), then connect and type yes again.
- 'ssh' is not recognized (Windows)
- Turn on the OpenSSH Client in Windows Settings under Optional features, then open a new PowerShell window.
Still stuck? Open a ticket from the Support tab in your dashboard or contact us; our team is available 24/7. More lessons are in QuantVPS Learn.