https://github.com/villasv/ssh-artwork Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} villasv / ssh-artwork Public * Notifications You must be signed in to change notification settings * Fork 6 * Star 166 166 stars 6 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 1 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights villasv/ssh-artwork master BranchesTags [ ] Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 11 Commits keys keys .gitignore .gitignore Pipfile Pipfile Pipfile.lock Pipfile.lock README.md README.md crypto.py crypto.py main.py main.py randomart.py randomart.py View all files Repository files navigation * README SSH Artist Want to find an SSH key with a specific hash visualization pattern? If so, then this is the tool for you. If not, just don't make me SSH into your servers with their ugly-ass keys. Visualizing Public Keys OpenSSH 5.1 introduced a visual hash representation of public keys. From its changelog: * Introduce experimental SSH Fingerprint ASCII Visualisation to ssh(1) and ssh-keygen(1). Visual fingerprinnt display is controlled by a new ssh_config(5) option "VisualHostKey". The intent is to render SSH host keys in a visual form that is amenable to easy recall and rejection of changed host keys. This technique inspired by the graphical hash visualisation schemes known as "random art[*]", and by Dan Kaminsky's musings at 23C3 in Berlin. Fingerprint visualisation in is currently disabled by default, as the algorithm used to generate the random art is still subject to change. [*] "Hash Visualization: a New Technique to improve Real-World Security", Perrig A. and Song D., 1999, International Workshop on Cryptographic Techniques and E-Commerce (CrypTEC '99) http://sparrow.ece.cmu.edu/~adrian/projects/validation/validation.pdf You can visualize your existing keys with the following command: ssh-keygen -lv -f ~/.ssh/id_rsa.pub It's probably gibberish, as expected from all the randomness involved. My original key looked like this: +---[RSA 4096]----+ | **o.ooO| | *oo.+.B.| | o E*o** =| | .o O++=o| | S . =o+ | | . o | | . o | | oo =| | .o++o| +----[SHA256]-----+ Good Looking Public Keys Once visualization is introduced, so is aesthetics. This feature presents a great opportunity to fight against truly random key generation in order to trade security for arbitrary human desires. For example, I wanted a key that looked like this: +------[RSA]------+ | | | .OOOO OOO | | ..OOOO OOO. | | ...OOOOOOO. | | ...OOSOO. | | ...OEO. | | ..... | | ... | | | +-----[SHA256]----+ In order to get it, draw the desired end state on the keys/E.art and then start the artist creative process with ./ssh-artist and kill the artist when patience is depleted. About No description, website, or topics provided. Resources Readme Activity Stars 166 stars Watchers 3 watching Forks 6 forks Report repository Releases No releases published Packages 0 No packages published Languages * Python 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.