How to connect to a VPS via SSH

SSH is the primary way to connect and manage your Linux virtual server. A detailed step-by-step guide.

5 min read
#vps#ssh#linux#putty#terminal

When you purchase a VPS (Virtual Private Server) with a Linux operating system (Ubuntu, Debian, CentOS, etc.), you won't receive a graphical interface like on Windows, but only access to the command line (terminal). This communication is facilitated by the SSH protocol.

Connecting via Windows 10/11 and macOS (Terminal)

Modern systems already contain an SSH client built-in, so you don't need to download any additional programs.

  1. On Windows, search for the 'Command Prompt' or 'PowerShell' application. On macOS, open the 'Terminal'.
  2. Enter the following command into the terminal and press Enter:
bash
ssh root@YOUR_SERVER_IP

Change YOUR_SERVER_IP to the real IP address of your VPS, which you can find in the Hexado dashboard.

  1. Upon your first connection, the system will ask you if you trust this host (Are you sure you want to continue connecting?). Type 'yes' and press Enter.
  2. Subsequently, you will be prompted for a password. The password is not visible while typing (not even as asterisks); this is a Linux security feature. Enter your password and press Enter.

If you entered everything correctly, you will see your system's welcome message (e.g., 'Welcome to Ubuntu 22.04 LTS').

Connecting via PuTTY (Alternative for older Windows)

If SSH from the terminal doesn't work, download the PuTTY program.

  • Launch PuTTY.
  • In the 'Host Name (or IP address)' field, paste the IP address of your VPS.
  • Leave the port at 22.
  • Click 'Open'.
  • In the new window, type your username (usually 'root') and your password.

Didn't find what you were looking for? Contact us.