{"id":898,"date":"2015-11-07T14:27:24","date_gmt":"2015-11-07T22:27:24","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=898"},"modified":"2015-11-07T14:27:24","modified_gmt":"2015-11-07T22:27:24","slug":"ssh-key-authentication-insist-on-password","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/ssh-key-authentication-insist-on-password\/","title":{"rendered":"SSH Key Authentication insist on password"},"content":{"rendered":"

I recently spent a lot of time trying to figure out why a private key I exported from putty was not working right on Linux. My issue was I kept getting prompted for a password no matter what. <\/p>\n

One clue that may or may not show the issue in the SSHD logs I was NOT seeing \"debug1: ssh_rsa_verify: signature correct\" when keyed authentication failed and switched to password. <\/p>\n

I fixed my problem by deleting the public key in the Linux client .ssh folder. So most likely while copying keys from Windows and putty I must have gotten a mismatch on private\/public pair.<\/p>\n

If you need it you can re-create it as follow:
\nrosso@rrosso-VirtualBox:~\/.ssh$ ssh-keygen -y -f id_rsa > id_rsa.pub<\/p>\n

$ ssh root@usli-utility.mgmt.asg.ad
\nLast login: Sat Nov 7 14:14:08 2015 from 192.168.38.104
\nOracle Corporation SunOS 5.11 11.3 September 2015
\nYou have new mail.<\/p>\n","protected":false},"excerpt":{"rendered":"

I recently spent a lot of time trying to figure out why a private key I exported from putty was<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-898","post","type-post","status-publish","format-standard","hentry","category-ssh"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}