Book a call Free rebuild

SSH

August 16, 2022 Updated November 16, 2026 2 min read

Hosting glossarySSH (Secure Shell) is an encrypted protocol for logging in to a server and running commands remotely, often used with keys instead of passwords.

SSH, short for Secure Shell, lets you work on a remote server as if you were sitting at its keyboard: you type commands on your own computer, and they run on the server. Everything that passes between the two, including passwords, commands, and files, is encrypted. Tatu Ylönen designed it in 1995 to replace Telnet, rlogin, and rsh, which sent everything, passwords included, as readable text across the network.

How it works

SSH uses a client-server model. A server runs an SSH service, by default on port 22, and you connect to it with an SSH client:

ssh username@example.com -p 22

On the first connection the client shows the server's host key fingerprint and remembers it. If the fingerprint changes later, the client warns you, which protects against someone impersonating the server. The two sides then agree encryption keys, and you authenticate in one of two ways:

  • Password: simple, but open to guessing and brute-force attacks.
  • Key pair: you create a private key, which never leaves your computer, and a public key, which is added to ~/.ssh/authorized_keys on the server. The server checks that you hold the private key without it ever being sent. ssh-keygen -t ed25519 creates a modern key pair.

What it is used for

  • Remote command line: managing servers, reading logs, and running scripts in a terminal.
  • File transfer: SFTP and scp move files over an SSH connection. SFTP is not FTP with encryption added; it is a separate protocol that runs over SSH, and it is the secure replacement for plain FTP.
  • Git: pushing and pulling code to services such as GitHub over SSH.
  • Tunnels: forwarding a port securely, for example to reach a database that is not exposed to the internet.
  • Automation: deployment tools and backup scripts connect with keys rather than passwords.

SSH and WordPress

Many hosts, including most managed WordPress hosts, offer SSH access, sometimes with a non-standard port. With it you can use WP-CLI to update plugins, run a search-and-replace across the database after a domain change, regenerate thumbnails, or create an admin user when locked out, often much faster than through the dashboard. It is also the reliable way to fix file permissions or inspect files after a hack.

Clients

OpenSSH is built into Linux, macOS, and current versions of Windows, so the ssh command works in a terminal or PowerShell with nothing to install. PuTTY is a long-standing graphical alternative on Windows, and most SFTP apps support SSH keys.

Security good practice

  • Use key-based authentication and, on servers you run, turn off password logins and direct root login.
  • Protect private keys with a passphrase, and never share or email them.
  • Give each person their own key, and remove it from authorized_keys when they leave.
  • Where possible, limit SSH access to known IP addresses or put it behind a VPN.
HostList

The hosting directory with no paid rankings.

Compare 30,000+ web hosts and MSPs across 120+ countries, ranked by HRI, an independent 0 to 100 rating built from verified data. Find your perfect web host.