{"id":452,"date":"2023-10-30T12:55:44","date_gmt":"2023-10-30T04:55:44","guid":{"rendered":"http:\/\/blog.naspro.cc\/?p=452"},"modified":"2023-10-30T12:55:44","modified_gmt":"2023-10-30T04:55:44","slug":"%e7%be%a4%e6%99%967-x%e8%8e%b7%e5%8f%96root%e6%9d%83%e9%99%90%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/blog.naspro.cc\/?p=452","title":{"rendered":"\u7fa4\u66567.X\u83b7\u53d6ROOT\u6743\u9650\u6559\u7a0b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2023\/10\/image-1698641467798.png\" alt=\"file\" \/><br \/>\n\u5f00\u542f22\u7aef\u53e3 SSH\u529f\u80fd<br \/>\n\u8f93\u5165\u201csudo -i\u201d\u63d0\u6743\uff0c\u4f1a\u8981\u6c42\u518d\u6b21\u8f93\u5165\u5bc6\u7801\uff08\u4f9d\u7136\u662f\u7ba1\u7406\u5458\u5bc6\u7801\uff09\uff1a<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2023\/10\/image-1698641551773.png\" alt=\"file\" \/><\/p>\n<p>\u8f93\u5165\u547d\u4ee4\u201cvi \/etc\/ssh\/sshd_config\u201d\uff0c\u7136\u540e\uff0c\u4f7f\u7528\u952e\u76d8\u7684\u65b9\u5411\u6309\u952e\u627e\u5230\u5982\u4e0b\u56fe\u6240\u793a\u7684\u5173\u952e\u5b57<br \/>\n\u70b9\u51fb\u952e\u76d8\u7684i\u952e\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f\uff0c\u5728\u4e0a\u9762\u6b65\u9aa4\u627e\u5230\u7684\u5173\u952e\u5b57\u4e0b\u6dfb\u52a0 \u201cPermitRootLogin yes\u201d\uff1a<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2023\/10\/image-1698641670627.png\" alt=\"file\" \/><br \/>\n\u6dfb\u52a0\u597d\u4ee5\u540e\u70b9\u51fb\u952e\u76d8\u7684ESC\u6309\u952e,\u7136\u540e\u8f93\u5165\u201c:wq\u201d\u4fdd\u5b58\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f\u3002<\/p>\n<p>\u8f93\u5165\u547d\u4ee4\u4fee\u6539root\u9ed8\u8ba4\u5bc6\u7801\uff1a\u201csynouser --setpw root xxxxxx\u201d \u540e\u9762\u7684xxxxx\u66f4\u6362\u6210\u4f60\u81ea\u5df1\u7684\u5bc6\u7801<\/p>\n<p>\u7136\u540e\u201creboot\u201d\u547d\u4ee4\u91cd\u542f\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u542f22\u7aef\u53e3 SSH\u529f\u80fd \u8f93\u5165\u201csudo -i\u201d\u63d0\u6743\uff0c\u4f1a\u8981\u6c42\u518d\u6b21\u8f93\u5165\u5bc6\u7801\uff08\u4f9d\u7136\u662f\u7ba1\u7406\u5458\u5bc6\u7801\uff09\uff1a \u8f93\u5165\u547d\u4ee4\u201cvi \/etc\/ssh\/sshd_config\u201d\uff0c\u7136\u540e\uff0c\u4f7f\u7528\u952e\u76d8\u7684\u65b9\u5411\u6309\u952e\u627e\u5230\u5982\u4e0b\u56fe\u6240\u793a\u7684\u5173\u952e\u5b57 \u70b9\u51fb\u952e\u76d8\u7684i\u952e\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f\uff0c\u5728\u4e0a\u9762\u6b65\u9aa4\u627e\u5230\u7684\u5173\u952e\u5b57\u4e0b\u6dfb\u52a0 \u201cPermitRootLogin yes\u201d\uff1a \u6dfb\u52a0\u597d\u4ee5\u540e\u70b9\u51fb\u952e\u76d8\u7684ESC\u6309\u952e,\u7136\u540e\u8f93\u5165\u201c:wq\u201d\u4fdd\u5b58\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f\u3002 \u8f93\u5165\u547d\u4ee4\u4fee\u6539root\u9ed8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,16],"tags":[],"class_list":["post-452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","category-16"],"_links":{"self":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=452"}],"version-history":[{"count":0,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/452\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/media\/455"}],"wp:attachment":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}