What is SSH in one paragraph?
SSH is a network protocol that opens an encrypted, authenticated channel between your computer and a remote machine. Inside that channel you can run a shell, execute single commands, copy files and forward other network connections. It replaced older tools that sent passwords in plain text, and it has become the standard way to administer Linux and BSD systems. On a dedicated server, it is usually the only door you need.
Where did SSH come from?
The first version was written in 1995 by Tatu Ylönen, a researcher in Finland, after a password-sniffing attack on his university network. It spread quickly because it was a drop-in replacement for rsh, rlogin and telnet. The protocol was later redesigned as SSH-2, which fixed weaknesses in the first version and was published as a set of IETF standards, RFC 4251 through RFC 4254, in 2006. SSH-1 is obsolete and no current server accepts it.
OpenSSH, started by the OpenBSD project in 1999, is the implementation almost everyone runs. It ships with every Linux distribution, every BSD, macOS and, since 2018, Windows 10 and later as an optional feature. When people say "SSH" on a Linux server, they almost always mean OpenSSH.
What can I do with SSH?
- Remote shell: type commands on the server as if you sat at its keyboard.
- One-off commands:
ssh admin@host 'df -h /var'runs a command and returns its output. - File transfer:
scp,sftpandrsyncall travel over SSH. - Port forwarding: reach a database or admin panel that only listens on the server's loopback address.
- Jump hosts: hop through one machine to reach another with
ssh -J. - Git: pushing to a private repository over SSH uses the same keys and protocol.
How does SSH protect the connection?
Three ways at once. It encrypts traffic so nobody on the path can read it. It checks integrity so nobody can alter packets unnoticed. And it authenticates both sides: the server proves its identity with a host key, and you prove yours with a password or, better, a key pair. The details of the handshake are explained step by step in How SSH works.
What are the parts of an SSH setup?
| Part | Where it lives | What it does |
|---|---|---|
Server daemon sshd | The remote machine | Listens on port 22 and handles logins |
Client ssh | Your computer | Starts connections and runs your session |
| Host keys | /etc/ssh/ssh_host_* | Prove the server's identity |
| User keys | ~/.ssh/ on your side | Prove your identity without a password |
authorized_keys | The user's .ssh on the server | Lists public keys allowed to log in |
known_hosts | Your .ssh | Remembers server fingerprints |
How do I make my first SSH connection to a new machine?
Once the panel shows the machine as powered on, it also lists the IPv4 address and the root password. From a terminal on Linux or macOS, or from PowerShell on Windows:
ssh root@192.0.2.77
Your client prints the server's key fingerprint and asks whether to continue. Type yes, enter the root password, and you are in. If you added an SSH key in the panel before ordering, no password is asked at all. Your first tasks are usually updating packages, creating a personal user and switching to key-only login, as described in Harden SSH on Linux.
Is SSH safe on the public internet?
Yes, when configured sensibly. The protocol itself has a strong record; real compromises nearly always come from weak passwords, leaked private keys or long-unpatched servers. Key-only authentication, current packages and a firewall make an SSH server one of the safer services you can expose. Every machine also sits behind edge DDoS filtering, which absorbs floods aimed at any port, including 22.
What does SSH not do?
It does not secure your website, which uses TLS; it does not replace a VPN for whole-network access, though it can tunnel single ports; and it does not protect a machine whose user accounts or keys are already compromised. For a comparison with web encryption, read SSH vs SSL/TLS.
Keep Reading
How SSH works
Follow one SSH connection from the TCP handshake through key exchange, host verification and login to channels and forwarding.
OpenEveryday SSH commands
The SSH toolkit you will actually use on a server: ssh, ssh-keygen, ssh-copy-id, ssh-agent, scp, sftp, ssh-keyscan and tunnels.
OpenSSH keys
How SSH key pairs replace passwords, how to make an ed25519 key and how to have it placed on your machine at install time.
OpenBare metal server
A physical machine rented to one customer, with your operating system running straight on the hardware.
OpenFAQ
Quick Answers
Secure Shell. It is a protocol for encrypted remote login, command execution and file transfer.
Port 22 by default, though the server can be moved to any port.
No. Every image we install runs the OpenSSH server, and the panel shows the address and root password for the first login.
Yes. Windows 10 and later include an OpenSSH client that runs from PowerShell or the command prompt.
No. SSH-1 is obsolete; every current server speaks SSH-2 only.