India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Netherlands Nederlands

How Do I SSH Into My VPS From a Computer?

Buy domains, business emails, hosting, VPS and more: Get Started

Cheapest Domains in South Africa

Get your .Co.Za or .Com domain now for just 45.00 ZAR (Back to 1200 in 7 days)

.CO.ZA for 45.00 ZAR | .COM for 150.00 ZAR

You just paid for a VPS. You have an IP address and a password sitting in an email. You try clicking around, and nothing happens.

That confusion is normal. A VPS does not come with a visible desktop or a login screen. You reach it through a command line, and that command line lives inside SSH.

The good news: you can be connected in under two minutes. All you need is a terminal, three pieces of information, and the steps below.

This guide covers Windows, Mac, and Linux, plus what to do if something goes wrong.

What You Need Before You Connect

Before you open any terminal or client, gather three things:

  • Your VPS IP address, a string of numbers such as 41.185.xx.xx
  • Your username is usually root unless your host has set up a different account
  • Your password or SSH key, sent in your welcome email or shown in your client area

If you host with Truehost, log in to your client area and open the VPS management section. Your server details, including the IP address and login credentials, are listed there.

SSH connects over port 22 by default. Some hosts change this for security reasons, so check your welcome email if your first attempt fails on the standard port.

You do not need extra software on Mac or Linux. Windows users have two solid options, both covered below.

How to SSH Into a VPS From Windows

shell ssh server log in

Windows gives you two paths: the built-in terminal or a dedicated client called PuTTY.

Option 1: Windows Terminal or PowerShell

Windows 10 and 11 ship with OpenSSH already installed, so no download is needed.

  • Open the Start menu and search for “Terminal” or “PowerShell”
  • Type ssh username@your_vps_ip and press Enter
  • Replace username with your VPS username and your_vps_ip with your actual IP address.
  • On your first connection, you will see a prompt about the host’s authenticity. Type yes and press Enter.
  • Enter your password when asked. Nothing will appear on screen while you type, and that is expected.

Option 2: PuTTY

how to use putty on windows accurately

PuTTY works well if you prefer a graphical interface or run an older version of Windows.

  • Download and install PuTTY from its official site
  • Open PuTTY and enter your VPS IP address in the “Host Name” field
  • Leave the port at 22 unless your host specified a different one
  • Select “SSH” as the connection type and click “Open”
  • Accept the security prompt on your first connection
  • Enter your username, then your password, when prompted

Either method lands you in the same place: a working command line connected to your server.

How to SSH Into a VPS From Mac

How to SSH Into a VPS From Mac

Mac ships with a terminal application and an SSH client already built in, so there is nothing to install.

  • Open Spotlight with Command + Space, type “Terminal,” and press Enter
  • Type ssh username@your_vps_ip and press Enter
  • Replace the placeholders with your actual username and IP address
  • On your first connection, you will see a message about the host’s authenticity. Type yes and press Enter
  • Enter your password when prompted. The characters stay hidden as you type

If you manage several servers, apps like Termius or iTerm2 can save your connection details. They are optional, not required, for a single VPS.

How to SSH Into a VPS From Linux

How to SSH Into a VPS From Linux

Linux distributions almost always ship with the OpenSSH client preinstalled.

  • Open your terminal application.
  • Type ssh username@your_vps_ip and press Enter.
  • Replace the placeholders with your actual username and IP address
  • Accept the host authenticity prompt onthe  first connection
  • Enter your password when asked

On rare minimal distributions, the SSH client may be missing. Install it with:

sudo apt install openssh-client

Adjust the package manager command if your distribution does not use apt.

Connecting With an SSH Key Instead of a Password

An SSH key is a pair of files that let you log in without typing a password each time. One file stays on your computer, and the other lives on your VPS.

Step 1: Generate a key pair

ssh-keygen -t ed25519

Press Enter to accept the default file location. Adding a passphrase is optional but adds an extra layer of protection.

Step 2: Copy the public key to your VPS

ssh-copy-id username@your_vps_ip

This command uploads your public key and places it in the correct folder on the server automatically.

If ssh-copy-id is not available, paste the contents of your .pub file manually into ~/—ssh/authorized_keys on the VPS.

Step 3: Confirm the connection

Run the same ssh username@your_vps_ip command as before. If everything is set up correctly, you will log in without a password prompt.

Some hosts, including certain Truehost VPS plans, configure key-only access from the start.

If your password does not work, check whether a key was already generated and sent to you during setup.

Fixing Common SSH Connection Errors

Most connection problems fall into three categories. Here is how to read them and what to try next.

1) “Connection refused.” This usually means the wrong port, wrong credentials, or a stopped SSH service on the server side. Double-check your port number and confirm the server is running through your client area.

2) “Connection timed out.” This points to a firewall blocking port 22, or a VPS that has not finished booting. Wait a minute, if the server was just created, then try again.

3) “Permission denied.” This almost always traces back to an SSH key problem. Confirm the correct public key is installed on the VPS, and that you are pointing to the matching private key on your computer.

If none of these fixes work, reach out to your hosting provider’s support team with the exact error message. That detail speeds up troubleshooting significantly.

FAQs

Do I need to install anything to use SSH on Windows 11?

What’s the difference between SSH and RDP for a VPS?

Can I SSH into my VPS from my phone?

Is it safe to use the default root account over SSH?

What do I do if I forgot my VPS SSH password?

Connect To Your VPS Securely

Connecting to your VPS comes down to the same three pieces every time: your IP address, your username, and your password or key.

Once you have those, the steps stay nearly identical across Windows, Mac, and Linux.

Log in to your Truehost client area now and locate your VPS credentials. Try the connection using the steps above, and reach out to Truehost support if you hit an error not listed here.

Elias N
Author

Elias N

SEO Expert Nairobi, KEN

SEO nerd by trade. Obsessing over keywords, content, and why Google does what it does.

View All Posts