{"id":19,"date":"2007-10-07T07:17:25","date_gmt":"2007-10-07T12:17:25","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=19"},"modified":"2009-03-26T06:32:56","modified_gmt":"2009-03-26T11:32:56","slug":"sshd-configuration-public-key-only","status":"publish","type":"post","link":"http:\/\/www.hpux.ws\/?p=19","title":{"rendered":"SSHD configuration public key only."},"content":{"rendered":"<p>In order to set up ssh to only accept login by public key and not interactive login, the following changes are needed to sshd_config<\/p>\n<p>PermitRootLogin without-password<\/p>\n<p>Change:<\/p>\n<p>#PubkeyAuthentication yes<\/p>\n<p>to<\/p>\n<p>PubkeyAuthentication yes<\/p>\n<p>You must restart the sshd daemon next to implement:<br \/>\nhp-ux(HP may change this with no notice):<br \/>\n\/sbin\/init.d\/secsh stop<br \/>\n\/sbin\/init.d\/secsh start<\/p>\n<p>Linux(RH distros):<br \/>\nservice sshd restart<\/p>\n<p>Make sure you have placed a public key file from a system you want to login and tested it first or your access will be console, hands on the keyboard only. That can be a big problem on remote systems.<br \/>\n<a href=\"http:\/\/www.hpux.ws\/?p=10\">For more on public key configuration and exchange, click here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to set up ssh to only accept login by public key and not interactive login, the following changes are needed to sshd_config PermitRootLogin without-password Change: #PubkeyAuthentication yes to PubkeyAuthentication yes You must restart the sshd daemon next to implement: hp-ux(HP may change this with no notice): \/sbin\/init.d\/secsh stop \/sbin\/init.d\/secsh start Linux(RH distros): service [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-net","category-sysadmin"],"_links":{"self":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/19"}],"collection":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":2,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":31,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/31"}],"wp:attachment":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}