The SSH randomart image is a visual fingerprint to spot changed host keys
What is the randomart image for? (2023)
Brian Hicks explains that the randomart image from ssh-keygen is a visual fingerprint for host keys. By setting VisualHostKey to yes, you see the art on every login, helping you notice if a server's key changes. He found it works: he now recognizes GitHub's key as a cat-like Statue of Liberty and another as the Vagrant logo. He recommends enabling it as a pleasing and useful security check.
By learning the pattern a known server produces, a user can easily find out that the host key has changed when a completely different pattern is displayed.