How SSH works
SSH gives an encrypted remote command line. Both sides exchange keys, the client checks the server's host key fingerprint, the user signs in with a password or key, and every keystroke travels encrypted.
Layer: Application (OSI layer 7) · Port: 22 · Transport: TCP · Format: Encrypted binary packets · Standard: RFC 4253
SSH packet flow
- SSH Client → App Server: Client: SSH-2.0-OpenSSH_9.6
- SSH App Server → Client: Server: SSH-2.0-OpenSSH_9.3
- SSH Client → App Server: Key exchange (curve25519)
- SSH App Server → Client: Host key + new keys
- SSH Client → App Server: User auth (public key)
- SSH Client → App Server: Encrypted channel: 'ls -la'
Other protocols: HTTPS · TLS/SSL · DNSSEC · DNS over HTTPS · Wi-Fi · WPA3 · RADIUS · Captive Portal · HTTP Proxy · SOCKS5 · Reverse Proxy · WireGuard · IPsec