Disclosure: this page contains affiliate links. If you buy through them we may earn a commission at no extra cost to you.
Direct answer: To SSH into your VPS, open a terminal and run ssh root@YOUR_IP (use PowerShell or PuTTY on Windows), then enter your password. Immediately after logging in, add a non-root user, switch to SSH key auth, and disable password login.
SSH (Secure Shell) is how you log into a VPS’s command line. It’s the first skill every VPS user needs. Here’s the whole thing, plainly.
1. Get your credentials
When you order a VPS, the provider gives you an IP address, a username (usually root), and a password (or you set an SSH key during setup).
2. Connect
- macOS / Linux: open Terminal and run
ssh root@YOUR_IP - Windows: use PowerShell (built in) or PuTTY
You’ll be asked for the password the first time. Type it (nothing shows on screen — that’s normal) and press Enter.
3. Do these three security steps immediately
A public VPS is scanned for weak SSH passwords within minutes of going online. Do this first:
Add a non-root user:
adduser deploy
usermod -aG sudo deploy
Set up SSH key auth (from your local machine):
ssh-copy-id deploy@YOUR_IP
Disable password login in /etc/ssh/sshd_config:
PasswordAuthentication no
PermitRootLogin no
Then sudo systemctl restart ssh.
Which VPS to start with
If this is your first VPS, Hostinger’s panel makes the initial connection painless. If you want the cheapest sandbox to practice on, RackNerd’s $21.99/year plan is perfect — and you’ll get root access to a real KVM box.
FAQ
Q: How do I SSH into my VPS from Windows?
Open PowerShell and run ssh root@YOUR_IP, or use PuTTY, then enter your password when prompted.
Q: What is the default SSH username for a VPS?
Most providers set the default user to root, which you should replace with a non-root user using adduser deploy.
Q: Should I disable password login after connecting?
Yes. Set PasswordAuthentication no in sshd_config and use SSH key auth so attackers cannot brute-force your server.
Bottom line: Learn SSH once and every VPS is yours — add a non-root user, switch to key auth, and disable password login before anything else.
Start with an easy VPS: Hostinger Or grab RackNerd's $22/yr sandbox