{"id":361,"date":"2015-10-16T09:18:42","date_gmt":"2015-10-16T01:18:42","guid":{"rendered":"https:\/\/drho.club\/?p=361"},"modified":"2015-10-16T09:18:42","modified_gmt":"2015-10-16T01:18:42","slug":"ssh-without-password","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2015\/10\/16\/ssh-without-password\/","title":{"rendered":"SSH\u514d\u5bc6\u78bc\u9a57\u8b49\u8a2d\u5b9a"},"content":{"rendered":"<p style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4; font-size: 12pt; line-height: 200%; letter-spacing: 2pt;\">\u7531\u65bc\u7d93\u5e38\u6703\u5728\u5169\u4e09\u53f0Linux\u4e3b\u6a5f\u4e4b\u9593\u4f7f\u7528SSH\uff0c\u53e6\u5916Mirgration VM\u6642\u4e5f\u6703\u4f7f\u7528\u5230SSH\uff0c\u6240\u4ee5\u8a2d\u5b9a\u597d\u514d\u5bc6\u78bc\u9a57\u8b49\u6703\u8b93\u64cd\u4f5c\u4e0a\u66f4\u52a0\u5730\u4fbf\u5229\u3002\u6b63\u78ba\u4f86\u8aaa\uff0c\u5176\u5be6\u4e0d\u662f\u514d\u5bc6\u78bc\uff0c\u800c\u662f\u4f7f\u7528\u516c\u79c1\u9470\u7684\u9a57\u8b49\u65b9\u5f0f\u4f86\u66ff\u4ee3\u4f7f\u7528\u8005\u8f38\u5165\u5bc6\u78bc\u3002\u4e3b\u8981\u7684\u539f\u7406\u5c31\u662f\u5148\u5229\u7528\u7a0b\u5f0f\u7522\u751f\u4e00\u7d44\u516c\u79c1\u9470\uff08\u4e00\u500b\u516c\u9470\u6a94\uff0c\u4e00\u500b\u79c1\u9470\u6a94\uff09\uff0c\u7136\u5f8c\u79c1\u9470\u7576\u7136\u662f\u4fdd\u5b58\u5728\u81ea\u5df1\u7684\u5e33\u6236\u76ee\u9304\u4e2d\uff0c\u800c\u628a\u516c\u9470\u4ea4\u7d66\u5c0d\u65b9\uff0c\u9019\u6a23SSH\u5728\u767b\u5165\u6642\uff0c\u6703\u5148\u6bd4\u5c0d\u9019\u7d44\u516c\u79c1\u9470\uff0c\u5982\u679c\u914d\u5c0d\u6210\u529f\uff0c\u5c31\u4e0d\u6703\u518d\u5411\u4f7f\u7528\u8005\u7d22\u53d6\u5bc6\u78bc\u4e86\u3002<\/p>\n<p style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4; font-size: 12pt; line-height: 200%; letter-spacing: 2pt;\">\u6709\u4e00\u9ede\u8981\u7279\u5225\u6ce8\u610f\u7684\uff0c\u5c31\u662f SSH\u548c\u4f60\u7684\u5e33\u865f\u6709\u95dc\uff0c\u4e0d\u540c\u7684\u5e33\u865f\u516c\u79c1\u9470\u8981\u653e\u5728\u500b\u81ea\u5df1\u8cc7\u6599\u593e\u4e4b\u4e0b\u3002\u4f8b\u5982\u5e33\u865f\u662fminhuang\uff0c\u90a3\u9ebc\u5c31\u662f\u653e\u5728\/home\/minhuang\/.ssh\/\u4e4b\u4e0b\uff0c\u5982\u679c\u662froot\uff0c\u5247\u662f\u653e\u5728\/root\/.ssh\/\u4e4b\u4e0b\u3002\u7522\u751f\u516c\u79c1\u9470\u5319\u5c0d\u7684\u7a0b\u5f0f\u662f ssh-keygen -t rsa\uff0c\u57f7\u884c\u5b8c\u7562\u4e4b\u5f8c\uff0c\u5c31\u6703\u5728\u4f60\u7684\u5bb6\u76ee\u9304.ssh\u76ee\u9304\u4e0b\u7522\u751f\u5169\u500b\u6a94\u6848\uff0c\u5206\u5225\u662fid_rsa\u4ee5\u53caid_rsa.pub\uff0c\u524d\u8005\u662f\u79c1\u9470\uff0c\u653e\u5728\u539f\u8655\u4e0d\u8981\u52d5\uff0c\u5f8c\u8005\u662f\u516c\u9470\uff0c\u8981\u628a\u5b83\u7684\u5167\u5bb9\u8907\u88fd\u5230\u53e6\u5916\u4e00\u53f0\u6a5f\u5668\u7684\u540c\u4e00\u500b\u5bb6\u76ee\u9304\u4e0b\u7684.ssh\/authroized_keys\u4e2d\uff0c\u57fa\u672c\u4e0a\u9019\u6a23\u5c31\u7b97\u662f\u5b8c\u6210\u4e86\u3002<\/p>\n<p style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4; font-size: 12pt; line-height: 200%; letter-spacing: 2pt;\">\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u65bc\u7d93\u5e38\u6703\u5728\u5169\u4e09\u53f0Linux\u4e3b\u6a5f\u4e4b\u9593\u4f7f\u7528SSH\uff0c\u53e6\u5916Mirgration VM\u6642\u4e5f\u6703\u4f7f\u7528\u5230SSH\uff0c\u6240\u4ee5\u8a2d\u5b9a\u597d\u514d\u5bc6\u78bc\u9a57\u8b49\u6703\u8b93\u64cd\u4f5c\u4e0a\u66f4\u52a0\u5730\u4fbf\u5229\u3002\u6b63\u78ba\u4f86\u8aaa\uff0c\u5176\u5be6\u4e0d\u662f\u514d\u5bc6\u78bc\uff0c\u800c\u662f\u4f7f\u7528\u516c\u79c1\u9470\u7684\u9a57\u8b49\u65b9\u5f0f\u4f86\u66ff\u4ee3\u4f7f\u7528\u8005\u8f38\u5165\u5bc6\u78bc\u3002\u4e3b\u8981\u7684\u539f\u7406\u5c31\u662f\u5148\u5229\u7528\u7a0b\u5f0f\u7522\u751f\u4e00\u7d44\u516c\u79c1\u9470\uff08\u4e00\u500b\u516c\u9470\u6a94\uff0c\u4e00\u500b\u79c1\u9470\u6a94\uff09\uff0c\u7136\u5f8c\u79c1\u9470\u7576\u7136\u662f\u4fdd\u5b58\u5728\u81ea\u5df1\u7684\u5e33\u6236\u76ee\u9304\u4e2d\uff0c\u800c\u628a\u516c\u9470\u4ea4\u7d66\u5c0d\u65b9\uff0c\u9019\u6a23SSH\u5728\u767b\u5165\u6642\uff0c\u6703\u5148\u6bd4\u5c0d\u9019\u7d44\u516c\u79c1\u9470\uff0c\u5982\u679c\u914d\u5c0d\u6210\u529f\uff0c\u5c31\u4e0d\u6703\u518d\u5411\u4f7f\u7528\u8005\u7d22\u53d6\u5bc6\u78bc\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[178,180],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ssh","tag-ssh-without-password"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":0,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/361\/revisions"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}