Secure Shell
Animated walkthrough
| STEP | TIME | SOURCE | DEST | PROTO | INFO | SIZE |
|---|---|---|---|---|---|---|
| 1 | 0.s | 192.168.1.10 | 203.0.113.22 | TCP | 53210 → 22 [SYN] Seq=0 | 66 B |
| 2 | 0.015s | 203.0.113.22 | 192.168.1.10 | TCP | 22 → 53210 [SYN, ACK] Seq=0 Ack=1 | 66 B |
| 3 | 0.03s | 192.168.1.10 | 203.0.113.22 | TCP | 53210 → 22 [ACK] Seq=1 Ack=1 | 60 B |
| 4 | 0.03s | 192.168.1.10 | 203.0.113.22 | SSH | Client: SSH-2.0-OpenSSH_for_Windows_9.5 | 87 B |
| 5 | 0.045s | 203.0.113.22 | 192.168.1.10 | SSH | Server: SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5 | 96 B |
| 6 | 0.045s | 203.0.113.22 | 192.168.1.10 | SSH | Server: Key Exchange Init | 1174 B |
| 7 | 0.06s | 192.168.1.10 | 203.0.113.22 | SSH | Client: Key Exchange Init, 2 segments | 1.6 KB |
| 8 | 0.06s | 192.168.1.10 | 203.0.113.22 | SSH | Client: KEX_ECDH_INIT (sntrup761x25519 public keys) | 1262 B |
| 9 | 0.075s | 203.0.113.22 | 192.168.1.10 | SSH | Server: KEX_ECDH_REPLY (host key, its half, signature) | 1286 B |
| 10 | 0.075s | 203.0.113.22 | 192.168.1.10 | SSH | Server: New Keys | 70 B |
| 11 | 0.09s | 192.168.1.10 | 203.0.113.22 | SSH | Client: New Keys | 70 B |
| 12 | 0.09s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=44): service request, ssh-userauth | 98 B |
| 13 | 0.105s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=44): service accept | 98 B |
| 14 | 0.12s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=68): login with method none | 122 B |
| 15 | 0.135s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=52): try publickey,password | 106 B |
| 16 | 0.15s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=140): offer public key | 194 B |
| 17 | 0.165s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=100): public key OK | 154 B |
| 18 | 0.18s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=308): public key + signature | 362 B |
| 19 | 0.195s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=28): login success | 82 B |
| 20 | 0.21s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=52): channel open: session | 106 B |
| 21 | 0.225s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=44): channel open confirmed | 98 B |
| 22 | 2.s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=36): keystroke | 90 B |
| 23 | 2.015s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=36): echo | 90 B |
| 24 | 2.14s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=36): keystroke | 90 B |
| 25 | 2.155s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=36): echo | 90 B |
| 26 | 2.26s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=36): keystroke | 90 B |
| 27 | 2.275s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=36): echo | 90 B |
| 28 | 2.42s | 192.168.1.10 | 203.0.113.22 | SSH | Encrypted (len=36): keystroke (Enter) | 90 B |
| 29 | 2.435s | 203.0.113.22 | 192.168.1.10 | SSH | Encrypted (len=132): output and a new prompt | 186 B |
Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.
Quick facts
How SSH works, animated
SSH turns an untrusted network into a safe terminal: algorithm negotiation, key exchange, host-key pinning, then login by key and an encrypted session — every keystroke a packet.
Related ports
More Security protocols
Frequently asked questions
SSH primarily uses port 22.
SSH sits at Application (Layer 7).
RFC 4251 – 4254.
Sources & standards
Explore this reference
about this tool
This page provides original, human-reviewed information about internet protocols such as SSH (Secure Shell), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.
If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.