{"id":1708,"date":"2023-03-25T23:10:53","date_gmt":"2023-03-25T15:10:53","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1708"},"modified":"2023-04-23T21:40:26","modified_gmt":"2023-04-23T13:40:26","slug":"basic-steps-for-ssh-public-key-login","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/basic-steps-for-ssh-public-key-login\/","title":{"rendered":"SSH\u516c\u94a5\u767b\u5f55\u57fa\u672c\u6b65\u9aa4"},"content":{"rendered":"<h3>\u672c\u5730\u7aef\u521b\u5efa\u79d8\u94a5\u5bf9<\/h3>\n<pre><code class=\"language-bash\">$ ssh-keygen<\/code><\/pre>\n<p><!-- more --><\/p>\n<h3>\u8fdc\u7a0b\u7aef<\/h3>\n<pre><code class=\"language-bash\">$ vim .ssh\/authorized_keys   \/\/\u6dfb\u52a0\u672c\u5730\u7aef\u516c\u94a5id_rsa.pub\u5185\u5bb9\n$ chmod 755 ~\/.ssh  \/\/\u914d\u7f6e\u76ee\u5f55\u6743\u9650\n$ chmod 600 ~\/.ssh\/authorized_keys  \/\/\u914d\u7f6e\u6743\u9650<\/code><\/pre>\n<h3>\u672c\u5730\u7aef<\/h3>\n<pre><code class=\"language-bash\">$ chmod 600 ~\/.ssh\/id_rsa  \/\/\u914d\u7f6e\u6743\u9650\n$ ssh -i ~\/.ssh\/id_rsa yezhou@192.168.0.8<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5730\u7aef\u521b\u5efa\u79d8\u94a5\u5bf9 $ ssh-keygen \u8fdc\u7a0b\u7aef $ vim .ssh\/authorized_keys \/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[96],"class_list":["post-1708","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1708"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1708\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}