{"id":632,"date":"2016-08-31T12:20:25","date_gmt":"2016-08-31T16:20:25","guid":{"rendered":"http:\/\/fazigu.org\/blog\/?p=632"},"modified":"2016-11-16T11:02:43","modified_gmt":"2016-11-16T16:02:43","slug":"ssh-asking-for-password-when-it-shouldnt","status":"publish","type":"post","link":"https:\/\/fazigu.org\/blog\/2016\/08\/31\/ssh-asking-for-password-when-it-shouldnt\/","title":{"rendered":"ssh asking for password when it shouldn&#8217;t"},"content":{"rendered":"<p>After a recent Ubuntu upgrade, one of my frequented remote servers stopped accepting my public key and was prompting me for my password. \u00a0The password is gross and unwieldy and I was most put-out, I must say. \u00a0So, I googled the title of this post. \u00a0Mostly suggestions to check the permissions of various files. \u00a0All of mine were locked tight to user-only, including my home directory.<\/p>\n<p>Of course, I&#8217;d already tried <code>ssh -vvv<\/code> to get all the debugging output. \u00a0Unfortunately, I zoomed in on the following message:<\/p>\n<pre>debug1: Next authentication method: publickey\r\ndebug2: we did not send a packet, disable method\r\n\r\n<\/pre>\n<p>Instead of this one a little further up:<\/p>\n<pre>debug1: Skipping ssh-dss key \/home\/ME\/.ssh\/keyfiles\/ME.key - not in PubkeyAcceptedKeyTypes\r\n\r\n<\/pre>\n<p>Rather than add ssh-dss to the supported types, I just created a new key with <code>ssh-keygen<\/code>. \u00a0 An <code>ssh-copy-id<\/code> later,\u00a0everything worked.<\/p>\n<p>&#8230; except when it didn&#8217;t. \u00a0Adding the following to <code>~\/.ssh\/config&lt;\/tt<\/code> for the offending host worked:<\/p>\n<pre>Host refuses-my-agent-keys.jerkass.com\r\n    PubkeyAcceptedKeyTypes +ssh-dss\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After a recent Ubuntu upgrade, one of my frequented remote servers stopped accepting my public key and was prompting me for my password. \u00a0The password is gross and unwieldy and I was most put-out, I must say. \u00a0So, I googled the title of this post. \u00a0Mostly suggestions to check the permissions of various files. \u00a0All [&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],"class_list":["post-632","post","type-post","status-publish","format-standard","hentry","category-hacking","tag-linux","tag-ssh"],"_links":{"self":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/632","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=632"}],"version-history":[{"count":5,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/632\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/posts\/632\/revisions\/646"}],"wp:attachment":[{"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/media?parent=632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/categories?post=632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fazigu.org\/blog\/wp-json\/wp\/v2\/tags?post=632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}