{"id":560,"date":"2015-04-28T14:34:29","date_gmt":"2015-04-28T18:34:29","guid":{"rendered":"http:\/\/fazigu.org\/blog\/?p=560"},"modified":"2015-04-28T14:37:10","modified_gmt":"2015-04-28T18:37:10","slug":"ssh-no-matching-cipher-found","status":"publish","type":"post","link":"https:\/\/fazigu.org\/blog\/2015\/04\/28\/ssh-no-matching-cipher-found\/","title":{"rendered":"ssh: no matching cipher found"},"content":{"rendered":"<p>After a recent Ubuntu upgrade on my home machine, ssh attempts to it from the VirtualBox instance at work\u00a0stopped working. \u00a0 Here&#8217;s what ssh spewed back at me:<\/p>\n<pre><span style=\"color: #008000;\">  no matching cipher found: client blowfish-cbc,arcfour server aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Impatient, I just logged in from another machine. \u00a0The VM runs CentOS 5.10 so that its environment is comparable with what [used to be] present on the majority of our production servers. \u00a0 I&#8217;m an anti-RedHat bigot in the first place, and didn&#8217;t want to hunt down repos and upgrade my ssh.<\/p>\n<p>That was not necessary. \u00a0The problem was a &#8220;Ciphers&#8221; line I&#8217;d added to my <em>~\/.ssh\/config<\/em>, intended to prefer\u00a0 (&#8220;Googallegedly&#8221;) faster encryption methods. \u00a0 Adding all but those that resemble\u00a0email addresses seems to have fixed the issue. \u00a0\u00a0My &#8220;Ciphers&#8221; line now looks like this:<\/p>\n<pre><span style=\"color: #008000;\">\u00a0 Host *<\/span>\r\n<span style=\"color: #008000;\">\u00a0 Ciphers blowfish-cbc,arcfour,aes128-ctr,aes192-ctr,aes256-ctr<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>The ciphers may be defined in your system <em>\/etc\/ssh\/ssh_config<\/em>. \u00a0Check around. \u00a0If\u00a0you can&#8217;t find it anywhere, try this:<\/p>\n<pre>\u00a0 <span style=\"color: #008000;\">sudo find \u00a0~\/.[a-z]* \/etc -path '*ssh*' -type f | sudo xargs fgrep Cipher<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Anyway, that was my fix. \u00a0\u00a0Right on in, easy-peasy lemon-squeezy.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After a recent Ubuntu upgrade on my home machine, ssh attempts to it from the VirtualBox instance at work\u00a0stopped working. \u00a0 Here&#8217;s what ssh spewed back at me: no matching cipher found: client blowfish-cbc,arcfour server aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com &nbsp; Impatient, I just logged in from another machine. \u00a0The VM runs CentOS 5.10 so that its environment is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[26,67,25],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-hacking","tag-linux","tag-ssh","tag-sysadmin"],"_links":{"self":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":3,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":563,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/560\/revisions\/563"}],"wp:attachment":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}