{"id":544,"date":"2010-02-04T10:46:32","date_gmt":"2010-02-04T09:46:32","guid":{"rendered":"http:\/\/www.thomaskeller.biz\/blog\/?p=544"},"modified":"2010-02-11T11:32:47","modified_gmt":"2010-02-11T10:32:47","slug":"tip-enforce-specific-key-usage-for-a-single-ssh-connection","status":"publish","type":"post","link":"https:\/\/www.thomaskeller.biz\/blog\/2010\/02\/04\/tip-enforce-specific-key-usage-for-a-single-ssh-connection\/","title":{"rendered":"Tip: Enforce specific key usage for a single SSH connection"},"content":{"rendered":"<p>In case you have to access a very restricted SSH server which only accepts a single key (ie. the one which is set up in `~\/.ssh\/authorized_keys`) and otherwise fails, its the easiest to set the specific key in your local `~\/.ssh\/config` file as follows:<\/p>\n<pre>\r\nHost very.secure.server\r\n    IdentityFile ~\/.ssh\/id_dsa\r\n    IdentitiesOnly true\r\n<\/pre>\n<p>The second entry, `IdentitiesOnly`, forces SSH to only use known identity files and not look for more available identities f.e. from a running `ssh_agent` instance (which are always tried in first instance as it seems).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you have to access a very restricted SSH server which only accepts a single key (ie. the one which is set up in `~\/.ssh\/authorized_keys`) and otherwise fails, its the easiest to set the specific key in your local `~\/.ssh\/config` file as follows: Host very.secure.server IdentityFile ~\/.ssh\/id_dsa IdentitiesOnly true The second entry, `IdentitiesOnly`, forces &hellip; <a href=\"https:\/\/www.thomaskeller.biz\/blog\/2010\/02\/04\/tip-enforce-specific-key-usage-for-a-single-ssh-connection\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Tip: Enforce specific key usage for a single SSH connection<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-544","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/comments?post=544"}],"version-history":[{"count":3,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts\/544\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/media?parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/categories?post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/tags?post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}