{"id":85,"date":"2013-11-13T21:00:00","date_gmt":"2013-11-13T21:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2013\/11\/13\/ssh-if-your-public-keys-do-not-get-accepted-by-the-remote-side-but-you-think-they-are-in-your-remote-authorized-keys-file\/"},"modified":"2013-11-13T21:00:00","modified_gmt":"2013-11-13T21:00:00","slug":"ssh-if-your-public-keys-do-not-get-accepted-by-the-remote-side-but-you-think-they-are-in-your-remote-authorized-keys-file","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2013\/11\/13\/ssh-if-your-public-keys-do-not-get-accepted-by-the-remote-side-but-you-think-they-are-in-your-remote-authorized-keys-file\/","title":{"rendered":"SSH: if your public keys do not get accepted by the remote side, but (you think) they are in your remote authorized keys file, \u2026"},"content":{"rendered":"<p>\t\t\t\t\u2026 check, whether the remote side considers\u00a0<span>authorized_keys<\/span> or\u00a0<span>authorized_keys2<\/span>:<\/p>\n<blockquote><p>\n<span># supposedly only one of them exists:<\/span><br \/><span>$ fgrep AuthorizedKeysFile \/etc\/ssh\/sshd_config \/etc\/sshd_config<\/span><br \/><span><span>AuthorizedKeysFile<\/span><span> <\/span><span>.ssh\/authorized_keys<\/span><\/span><\/p><\/blockquote>\n<div>\nThis is certainly just one possible reason, if public keys do not get accepted by the remote side.<\/p>\n<p>For a couple of weeks I got asked the remote password instead, and I did not understand why. My local public key was properly listed in the remote\u00a0<span>.ssh\/authorized_keys2<\/span>, but only today I took the time to investigate the issue, and I got reminded of this well-known reason: my remote\u00a0<span>.ssh\/authorized_keys2<\/span><span>\u00a0simply did not get considered at all. The remote ssh looks at my remote\u00a0<\/span><span>.ssh\/authorized_keys<\/span>, because it got set up like that \u2013 see above!<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2026 check, whether the remote side considers\u00a0authorized_keys or\u00a0authorized_keys2: # supposedly only one of them exists:$ fgrep AuthorizedKeysFile \/etc\/ssh\/sshd_config \/etc\/sshd_configAuthorizedKeysFile .ssh\/authorized_keys This is certainly just one possible reason, if public keys do not get accepted by the remote side. For a couple of weeks I got asked the remote password instead, and I did not understand [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1n","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}