SSH randomart is a compact ASCII visualization of a key’s fingerprint, intended to make host keys easier to compare than long strings of letters and numbers. The author discovers its purpose in the SSH manual: enabling the VisualHostKey option displays a server’s image at login, giving users a visual cue if a host key has changed. The image is not definitive proof, since different keys can produce similar-looking patterns, but a noticeably different picture can flag a possible problem. The ssh-keygen command can also list fingerprints and randomart for known hosts, helping users learn which image belongs to each server.
The author enables visual host keys and checks examples for GitHub, which has distinct keys for ED25519, RSA, and ECDSA, as well as for another server. The image shown when connecting to GitHub matches the ED25519 entry, while a different server produces different art. After leaving the feature on, the author finds that recognizing familiar shapes becomes surprisingly natural: GitHub’s pattern evokes a cat-like Statue of Liberty, and another resembles the Vagrant logo. The recommendation is to enable the display: it is enjoyable to see in the terminal, and it offers an additional warning if a trusted server’s key changes.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.