How to Connect to Your VPS via SSH

SSH (Secure Shell) is the standard way to log in to and manage your VPS from your own computer. This guide covers connecting from any operating system and moving to more secure key-based login.

What you’ll need

  • Your VPS Main IP address (Details or Credentials tab)
  • Your username (usually root) and password
  • A terminal (macOS/Linux) or an SSH client on Windows

Connecting from macOS or Linux

Open a terminal and run ssh root@YOUR_SERVER_IP. Accept the host key prompt the first time, then enter your password. You’re now on your server’s command line.

Connecting from Windows

Windows 10 and 11 include SSH – open PowerShell and run the same ssh root@YOUR_SERVER_IP command. Alternatively, use a client like PuTTY: enter the IP, keep port 22, and click Open.

Switching to SSH keys

Generate a key pair with ssh-keygen, copy the public key to your VPS with ssh-copy-id root@YOUR_SERVER_IP, then disable password logins in /etc/ssh/sshd_config. Keys are far more secure than passwords.

JetHost Experts Tip

If SSH won’t connect, check your firewall allows port 22 from your IP, and confirm the VPS is running. Locked out completely? Use the browser Console to get back in.

Need More Help?

SSH is the everyday way to manage your VPS – and keys make it both easier and safer. If you get stuck, the JetHost team is available 24/7 and usually answers in under five minutes – just contact us and we’ll help you sort it out. Explore our other VPS tutorials to get the most out of your server.