What is SSH?

SSH, short for Secure Shell, is the standard way administrators log in to servers and network equipment over an encrypted connection. Almost every Linux server is managed through it.

Talk to an engineer Knowledge base
Diagram of an administrator connected to a server through an encrypted SSH session using a key pair

What it is

SSH gives an administrator a command line on a remote machine, with everything encrypted, the login included. It replaced Telnet, which sent passwords in plain text. The common version is OpenSSH, built into Linux, macOS and current Windows, and it listens on port 22 unless told otherwise.

The same connection also copies files (SCP and SFTP) and can tunnel other traffic. Tools such as Git and Ansible use SSH underneath.

Keys instead of passwords

SSH can log in with a password, but the better method is a key pair. The private key stays on the administrator's computer and is never sent anywhere. The matching public key is placed on the server. At login the server checks that the person holds the private key. Keys cannot be guessed like passwords, and because each administrator has their own, one person's access can be removed without changing anyone else's.

Why it matters to a business

  • It is how servers are run: updates, repairs and configuration on Linux servers, firewalls and switches happen over SSH.
  • It is a target: any SSH server reachable from the internet is scanned constantly by automated password guessing.
  • Access needs an owner: a key left on a server after someone leaves still works. Someone has to keep the list of who can log in.

Good practice

  • Keys only: turn off password login once keys are in place.
  • No direct root login: administrators sign in as themselves and raise their privileges when needed, so the log shows who did what.
  • Keep it off the open internet: reach SSH through a VPN or a private network such as Tailscale or WireGuard, or limit it to known addresses at the firewall.
  • Protect the private key: set a passphrase on it, or keep it on a hardware security key.
  • Remove keys when people leave: treat it as part of offboarding.

How KawaConnect works with SSH

We administer the Linux servers, firewalls and network equipment we look after over SSH, with key-based logins and remote access that is not left open to the internet. Access is documented, so a client can see who is able to reach its systems. This is part of our Linux server support and network security work.

Related services

Linux server support

Servers administered, patched, monitored and backed up.

Network security

Remote access that does not leave management ports open.

Networking and firewalls

Firewalls and switches configured and documented.

Learn more

  • Secure Shell on WikipediaWhere SSH came from and what else it is used for besides logging in.
  • OpenSSHThe project behind the SSH software on most systems, with its manual pages.
  • OpenSSH on the Arch WikiA practical reference for setting up keys and hardening a server, useful on any Linux distribution.
  • OpenSSH for WindowsMicrosoft's guide to the SSH client and server built into Windows.

Related guides

LinuxGitAnsibleVPNTailscaleWireGuardFirewallsRemote desktop and RDP

Not sure who can log in to your servers

Tell us what you run. We will review how remote access is set up and who holds keys.

Start a conversation