Client Server Attacker (MITM) Shared secret packet
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

SSH Key Exchange & Host Key Verification

This simulator visualizes the two cryptographic mechanisms that make SSH connections trustworthy: Diffie-Hellman key exchange, which lets a client and server agree on a shared secret over a public channel without ever transmitting it, and host key verification, which protects against man-in-the-middle attacks by fingerprinting the server's identity. Run a normal connection to watch both sides derive the same secret, or simulate an attacker inserting themselves between client and server to see the client's fingerprint check catch the impostor.