Connect to your Linux VPS with SSH from Windows, Mac or Linux

Find your login details, connect over SSH from Windows, macOS or Linux, confirm the host key, save a shortcut and fix the most common first-login errors.

  • Beginner
  • Linux VPS
  • 3 min read

By RunRacks Team · Published

SSH (Secure Shell) is how you manage a Linux VPS: an encrypted terminal session to your server. Every modern desktop already includes an SSH client, so there is nothing to buy or install on Windows 10/11, macOS or Linux.

What you need

All three details are in the client area under Services, on your server's page:

  • The server's IP address, for example 203.0.113.25.
  • The username, which is root on a fresh Linux VPS.
  • The root password.

1. Open a terminal

  • Windows 10 or 11: open Windows Terminal or PowerShell from the Start menu. The OpenSSH client is built in.
  • macOS: open Terminal (Applications → Utilities).
  • Linux: open your terminal app. If ssh is missing, install the openssh-client package.

2. Connect

Terminal
ssh [email protected]

If your server listens on a different SSH port, add -p and the port number:

Terminal
ssh -p 2222 [email protected]

3. Confirm the host key the first time

On the first connection SSH shows the server's fingerprint and asks Are you sure you want to continue connecting (yes/no/[fingerprint])?. Type yes and press Enter. Your computer saves the key in ~/.ssh/known_hosts and will warn you if it ever changes.

4. Enter the password

Paste or type the root password and press Enter. Nothing appears on screen while you type. That is normal. When you see a prompt such as root@node-linux-1234:~#, you are in.

Using PuTTY instead (Windows)

If you prefer a graphical client, install PuTTY from its official site (putty.org links to the download page).

  1. In Host Name, enter the IP address. Leave Port at 22 unless you changed it.
  2. Under Saved Sessions, type a name and click Save so you do not have to retype it.
  3. Click Open, accept the host key, and log in as root.

Save a shortcut

Typing the IP every time gets old. Create or edit ~/.ssh/config on your computer (on Windows it is C:\Users\<you>\.ssh\config):

Text
Host myvps
    HostName 203.0.113.25
    User root
    Port 22
    ServerAliveInterval 60

Now ssh myvps is enough. ServerAliveInterval stops idle sessions from being dropped by home routers.

Troubleshooting

  • Connection timed out: the server is stopped, the IP is wrong, or a firewall is dropping port 22. Check the server is running in the client area.
  • Connection refused: the server answered but nothing listens on that port. SSH may be stopped or on another port.
  • Permission denied: wrong username or password, or password logins are disabled and you need your key.
  • REMOTE HOST IDENTIFICATION HAS CHANGED: expected after an OS reinstall. Remove the old key with ssh-keygen -R 203.0.113.25 and connect again. If you did not reinstall, stop and contact support before continuing.

For a step-by-step checklist, see Fix SSH "connection refused" and "timed out" errors.

Next steps

Was this guide helpful?

Still stuck?

Ask RunRacks AI for a quick answer, or open a ticket and our team will take a look at your server.

Getting started

Edit files with nano: a beginner's guide

Open, edit, search and save files with the nano text editor on a Linux server, including cutting and pasting lines, showing line numbers and safely editing system config files with sudo.

  • Beginner
  • Linux VPS
  • 5 min read

Getting started

Your first hour with a new RunRacks server

A step-by-step roadmap for the first hour after your RunRacks server is delivered, from finding your login details to changing the password, updating the OS and picking your next guides.

  • Beginner
  • All
  • 5 min read

Getting started

How to choose a server location

Pick a data center location based on where your users, broker or team are, confirm it with ping tests, and weigh the legal and latency points that come with each choice.

  • Beginner
  • All
  • 4 min read