{"id":169,"date":"2008-10-30T10:48:22","date_gmt":"2008-10-30T18:48:22","guid":{"rendered":"http:\/\/www.outflux.net\/blog\/?p=169"},"modified":"2008-10-30T10:48:22","modified_gmt":"2008-10-30T18:48:22","slug":"how-to-drain-your-entropy-and-have-fun-with-ssh-fingerprint-ascii-art","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2008\/10\/30\/how-to-drain-your-entropy-and-have-fun-with-ssh-fingerprint-ascii-art\/","title":{"rendered":"how to drain your entropy and have fun with ssh fingerprint ASCII-art"},"content":{"rendered":"<p>SSH&#8217;s new <a href=\"http:\/\/www.screenage.de\/blog\/2008\/10\/15\/having-fun-with-openssh-on-ubuntu-intrepid-ibex-visual-host-keys\/\">&#8220;VisualHostKey&#8221; option<\/a> (in Ubuntu Intrepid and Debian Lenny) is great fun.  Normally it is disabled, but it seems that &#8220;ssh-keygen&#8221; turns it on when generating new keys.  In celebration of the Ubuntu release, here is a script to entertain yourself with RSA ASCII-art, care of SSH and your system&#8217;s entropy pool:<\/p>\n<pre><code>\r\n#!\/bin\/sh\r\nset -e\r\nDIR=$(mktemp -t -d rsa-art-XXXXXX)\r\ntrap \"rm -f $DIR\/key*; rmdir $DIR\" EXIT HUP INT QUIT TERM\r\n\r\nwhile :\r\ndo\r\n    ART=$(ssh-keygen -t rsa -f $DIR\/key -N \"\" | tail -n 11)\r\n    rm -f $DIR\/key\r\n    \/bin\/echo -e \"\\x1Bc\"\r\n    echo \"$ART\"\r\ndone\r\n<\/code><\/pre>\n<p>Makes me feel like I&#8217;m watching <a href=\"http:\/\/en.wikipedia.org\/wiki\/Conway's_Game_of_Life\">Life<\/a>.  (Use control-C to stop it.)<\/p>\n<p style='text-align:left'>&copy; 2008, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH&#8217;s new &#8220;VisualHostKey&#8221; option (in Ubuntu Intrepid and Debian Lenny) is great fun. Normally it is disabled, but it seems that &#8220;ssh-keygen&#8221; turns it on when generating new keys. In celebration of the Ubuntu release, here is a script to entertain yourself with RSA ASCII-art, care of SSH and your system&#8217;s entropy pool: #!\/bin\/sh set [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18,1,14,19],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":0,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}