1. Home
  2. Guides
  3. How to Connect to a Linux VPS

How to Connect to a Linux VPS (Beginner Guide)

Connecting to your VPS for the first time can feel intimidating if you've never used a command line before. This guide walks you through every step — from opening a terminal to running your first command on a remote server. We cover Windows (PowerShell and PuTTY) and Mac (Terminal), with no prior experience assumed.

What You Need

Your VPS IP address
Found in your hosting welcome email or control panel
Username
Usually root for a new VPS
Password
Set during provisioning or in your welcome email
SSH port
22 (default)

Connecting from Mac

Mac has SSH built in. No installation required.

Step 1: Open Terminal

Press Cmd + Space, type Terminal, and press Enter. A command line window will open.

Step 2: Type the SSH Command

Replace the IP address with your VPS IP from your welcome email:

ssh [email protected]

If your provider uses a non-standard port (not 22), add -p followed by the port number:

ssh [email protected] -p 2222

Step 3: Accept the Fingerprint

The first time you connect, you will see a message like:

The authenticity of host '123.456.789.0' can't be established.
ED25519 key fingerprint is SHA256:xxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)?

Type yes and press Enter. This is normal and only appears on the first connection.

Step 4: Enter Your Password

Type your password and press Enter. You will not see any characters appear as you type — this is a security feature, not a bug. The password is being entered even though the cursor does not move.

Step 5: You Are Connected

You should see a prompt like root@your-server:~#. You are now logged into your VPS and can run commands.

Connecting from Windows 10/11 (PowerShell)

Windows 10 and 11 have SSH built into PowerShell. No extra software needed.

Step 1: Open PowerShell

Press Windows key, type PowerShell, and click to open it. A blue command line window will appear.

Step 2: Type the SSH Command

Exactly the same as Mac:

ssh [email protected]

Step 3: Accept the Fingerprint and Enter Password

Same process — type yes when asked about the fingerprint, then type your password (it will not show on screen).

Connecting from Windows (PuTTY)

If you prefer a graphical interface, PuTTY is a free SSH client for Windows.

Step 1: Download PuTTY

Download from putty.org and install it.

Step 2: Configure the Connection

Click Open.

Step 3: Accept the Fingerprint

PuTTY will show a security alert about the server's key. Click Accept to continue.

Step 4: Log In

Type root as the username and press Enter, then type your password and press Enter. You are now connected.

First Commands to Run

Once connected, here are some useful first commands:

Setting Up SSH Keys (Recommended)

Passwords work, but SSH keys are more secure and faster. Here is the quick setup:

On Your Local Machine (Mac or Windows PowerShell)

ssh-keygen -t ed25519

Press Enter through all the prompts to accept defaults. This creates a key pair in ~/.ssh/.

Copy the Key to Your Server

ssh-copy-id [email protected]

Enter your password one last time. From now on, SSH will use your key instead of asking for a password.

Windows note: If ssh-copy-id is not available in PowerShell, use this instead:

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Troubleshooting

Frequently Asked Questions

SSH (Secure Shell) is a protocol that lets you securely connect to a remote server over the internet. It encrypts everything you type and everything the server sends back.
Windows 10 and 11 have SSH built into PowerShell. No installation needed. For a graphical option, you can install PuTTY, but it is not required.
Port 22. Unless your hosting provider has changed it, you connect on port 22 by default.
This appears on your first connection to any new server. It is normal. Type yes to accept the server's fingerprint and continue. You will not see this message again for the same server.
Yes, and it is recommended. SSH keys are more secure than passwords. Generate a key pair with ssh-keygen, then copy the public key to your server with ssh-copy-id.

Next Steps

Now that you can connect to your VPS, you can install software, set up a web server, deploy applications, or configure game servers. Check our other hosting guides for more tutorials.

Get Your Own UK VPS

AMD Ryzen 9 VPS with full root access, DDoS protection, and instant deployment. From £1.50/mo.

View VPS Plans → Learn More
← Back to Guides