how to connect to Linux VPS using SSH
How to Connect to a Linux VPS Using SSH: A Beginner-Friendly Guide
A beginner-friendly SSH guide for Linux VPS access on Windows, macOS, and Linux - including keys, permission fixes, and first-login security.
SSH is the standard way to administer a Linux server. If you are searching for how to connect to Linux VPS using SSH, you only need the IP, a username, and either a password or an SSH key.

Basic password login
ssh username@YOUR_SERVER_IP
Example:
ssh root@203.0.113.10
Accept the host key fingerprint on first connect, then enter your password (it will not show as you type).
Windows Terminal / PowerShell
- Open Windows Terminal or PowerShell.
- Run the
sshcommand above (OpenSSH is built into modern Windows). - If SSH is missing, install the OpenSSH Client optional feature.
macOS and Linux terminals
The same ssh user@ip command works in Terminal.app, iTerm, GNOME Terminal, etc.
Using an SSH key (recommended)
- Generate a key locally:
ssh-keygen -t ed25519 -C "you@example.com" - Copy the public key to the server (
ssh-copy-id user@ipor manually append to~/.ssh/authorized_keys). - Connect:
ssh user@ip(no password if key auth works).
Permission errors
UNPROTECTED PRIVATE KEY FILE→chmod 600 ~/.ssh/id_ed25519Permission denied (publickey)→ wrong key, wrong user, or public key not on serverConnection refused→ sshd not running or port blocked
Basic security after first login
- Create a sudo user; avoid daily root logins when possible
- Disable password auth after keys work
- Keep the OS updated:
apt update && apt upgrade(Debian/Ubuntu) - Allow only SSH (and needed app ports) in the firewall
MZ RDP USA KVM VPS plans give you full root so you can harden SSH your way. Get a USA VPS.