{"id":518468,"date":"2021-07-20T08:18:32","date_gmt":"2021-07-20T00:18:32","guid":{"rendered":"http:\/\/4563.org\/?p=518468"},"modified":"2021-07-20T08:18:32","modified_gmt":"2021-07-20T00:18:32","slug":"%e8%b0%b7%e6%ad%8c%e4%ba%91ssh%e8%bf%9e%e6%8e%a5%e9%94%99%e8%af%af%ef%bc%8c%e6%9c%ac%e5%9c%b0xshell-%e5%af%86%e9%92%a5%e8%bf%9e%e6%8e%a5%e6%96%b9%e6%b3%95%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=518468","title":{"rendered":"\u8c37\u6b4c\u4e91SSH\u8fde\u63a5\u9519\u8bef\uff0c\u672c\u5730Xshell \u5bc6\u94a5\u8fde\u63a5\u65b9\u6cd5\u3002"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>wanglaoji<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u8c37\u6b4c\u4e91SSH\u8fde\u63a5\u9519\u8bef\uff0c\u672c\u5730Xshell \u5bc6\u94a5\u8fde\u63a5\u65b9\u6cd5\u3002<\/h3>\n<p>  \t\t\u521b\u5efa\u8c37\u6b4c\u4e91\u540essh\u5728\u7f51\u9875\u4e0a\u4e00\u76f4\u6253\u4e0d\u5f00\uff0c\u663e\u793a\u8fde\u63a5\u9519\u8befssh\u8fde\u63a5\u3002 (#79) <\/p>\n<p>  \u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7dXshell\uff0c\u7136\u540e\u901a\u8fc7<\/p>\n<p>  \u5f00\u542f\u8c37\u6b4c\u4e91 Root \u8d26\u6237\u5bc6\u7801\u4f7f\u7528\u672c\u5730 SSH \u5ba2\u6237\u7aef\u767b\u5f55<br \/>  \u7f51\u9875\u6253\u5f00 Google SSH \u63a7\u5236\u53f0\u8fde\u63a5\u5230\u5b9e\u4f8b\uff0c\u5e76\u5207\u6362\u5230 Root \u8d26\u6237\uff1a<br \/>  sudo -i<\/p>\n<p>  \u6253\u5f00SSH\u914d\u7f6e\u6587\u4ef6\uff1a<br \/>  vi \/etc\/ssh\/sshd_config<\/p>\n<p>  \u6309 i \u8fdb\u5165 INSERT \u6a21\u5f0f\u540e\u627e\u5230\u5e76\u4fee\u6539\u4ee5\u4e0b\u4e24\u884c\uff1a<br \/>  PermitRootLogin yes<br \/>  PasswordAuthentication yes<br \/>  \u4fdd\u5b58\u5e76\u9000\u51fa\uff1a<br \/>  :wq<\/p>\n<p>  \u8bbe\u7f6e Root \u767b\u5f55\u5bc6\u7801\uff1a<br \/>  passwd root<\/p>\n<p>  \u91cd\u542f SSH \u670d\u52a1\u540e\u5c31\u53ef\u4ee5\u76f4\u63a5\u7528 Root \u8d26\u6237\u767b\u5f55\u4e86\uff1a<br \/>  service sshd restart<br \/>  # or<br \/>  systemctl restart sshd<\/p>\n<p>  XShell \u83dc\u5355\u680f -&gt; \u5de5\u5177 -&gt; \u65b0\u5efa\u7528\u6237\u5bc6\u94a5\u751f\u6210\u5411\u5bfc\uff1a<\/p>\n<p>  \u4fdd\u5b58\u597d\u4f60\u7684\u516c\u94a5\u4ee5\u4fbf\u5f85\u4f1a\u4f7f\u7528<\/p>\n<p>  \u6dfb\u52a0 SSH \u5bc6\u94a5\u5230 Google Cloud<br \/>  \u8fdb\u5165\u8c37\u6b4c\u4e91\u540e\u53f0 -\u865a\u62df\u673a\u5b9e\u4f8b\u8be6\u60c5-\u4fee\u6539<\/p>\n<p>  \u5728\u4fdd\u5b58\uff0c\u6700\u540e\u7684== \u7528\u6237\u540d\uff08\u4e00\u5b9a\u4e0d\u8981\u5fd8\u4e86\uff09<\/p>\n<p>  \u5728\u4f7f\u7528\u4f7f\u7528 XShell\u8fde\u63a5\uff0c\u7528\u6237\u540d\u5c31\u662f\u4f60\u5bc6\u94a5\u8bbe\u7f6e\u7684<\/p>\n<p>  \u767b\u9646\u540e\u8f93\u5165 sudo -i \u5207\u5230 Root \u8d26\u6237<\/p>\n<p>  \u5c0f\u767d\u9700\u8981\u7684\u53ef\u4ee5\u770b\u4e00\u4e0b\uff0c\u6211\u5361\u8fd9\u91cc\u51e0\u4e2a\u5c0f\u65f6:lol <\/p>\n<p>  \u8f6c\u8f7d\u4e8e\uff1acee.cc<\/p>\n<p>  \t\t\t\t\t<strong>wanglaoji<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u521a\u5f00\u59cb\u6253\u5f00\u7684\u662f\u4e0a\u9762\u90a3\u4e2a\u7ec8\u7aef\u3002Cloud shell  \t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>wanglaoji \u5927\u4f6c\u6709\u8bdd\u8bf4 :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/518468"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=518468"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/518468\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=518468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=518468"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=518468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}