SSH
Secure ShellBest for: Logging in to a server
- Host key, from Server
- Your key, from You
- Command, from You, locked
- Output, from Server, locked
Compare protocols
Best for: Logging in to a server
Best for: Websites, APIs and mail
SSH and TLS both encrypt a connection, but they do different jobs. SSH gives you a secure terminal, file transfer and tunnels to a machine you log in to, usually with a key, on port 22. TLS (the modern name for SSL) secures other protocols like HTTPS and email, and proves the server's identity with a certificate from a trusted authority.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | SSH | TLS (SSL) |
|---|---|---|
| Main job | Remote login, commands, file transfer, tunnels | Securing other protocols: HTTPS, IMAP, SMTP and more |
| Port | 22 | None of its own: 443 for HTTPS, 993 for IMAP, and so on |
| Proving the server | Host key, trusted on first use (known_hosts) | Certificate signed by a certificate authority |
| Proving the user | Usually a key pair, or a password | Rarely: the app handles logins, client certificates are optional |
| Inside the tunnel | Several channels: shell, SFTP, port forwards | One byte stream for one app protocol |
| Current version | SSH-2 | TLS 1.3 (SSL 2.0 and 3.0 are retired) |
| Standard | RFC 4251 to RFC 4254 | RFC 8446 (TLS 1.3) |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 7
Main job
Remote login, commands, file transfer, tunnels
No. SSH and SSL/TLS were designed separately and use different handshakes, key formats and trust models. They share ideas like key exchange and symmetric ciphers.
Not as a protocol. Every SSL version is retired because of known attacks. When people say SSL today, they almost always mean TLS.
Both are strong when kept up to date. The difference is in trust: SSH asks you to accept a host key the first time, while TLS checks a certificate chain for you.
Both use public key cryptography. An SSL certificate is a public key signed by an authority. A plain SSH key has no signature and is trusted because you added it yourself.