{"id":28,"date":"2016-09-20T08:40:52","date_gmt":"2016-09-20T00:40:52","guid":{"rendered":"http:\/\/bd6mm.cn\/blog\/?p=28"},"modified":"2019-04-02T17:58:09","modified_gmt":"2019-04-02T09:58:09","slug":"%e4%ba%9a%e9%a9%ac%e9%80%8aams%e4%bd%bf%e7%94%a8root%e5%af%86%e7%a0%81%e7%99%bb%e9%99%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/bd6mm.cn\/blog\/2016\/09\/%e4%ba%9a%e9%a9%ac%e9%80%8aams%e4%bd%bf%e7%94%a8root%e5%af%86%e7%a0%81%e7%99%bb%e9%99%86%e6%96%b9%e6%b3%95.html","title":{"rendered":"\u4e9a\u9a6c\u900aAMS\u4f7f\u7528ROOT+\u5bc6\u7801\u767b\u9646\u65b9\u6cd5"},"content":{"rendered":"<p>1\u3001\u5148\u7528AMS\u7684\u5bc6\u94a5\u5bf9\u767b\u9646;<br \/>\n2\u3001\u6267\u884c<\/p>\n<blockquote class=\"notranslate\"><p>sudo passwd root<\/p><\/blockquote>\n<p>\u4e3aroot\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801\uff1b<br \/>\n3\u3001\u6267\u884csu\u8f93\u5165\u5bc6\u7801\uff0c\u5207\u6362\u5230root\u7528\u6237\uff0c\u7136\u540e<\/p>\n<blockquote class=\"notranslate\"><p>sudo passwd ubuntu<\/p><\/blockquote>\n<p>\u4e3aubuntu\u7528\u6237\u8bbe\u7f6e\u597d\u5bc6\u7801;<br \/>\n4\u3001<\/p>\n<blockquote class=\"notranslate\"><p>sudo chmod 777 \/etc\/ssh\/sshd_config<\/p><\/blockquote>\n<p>\u4e3asshd_config\u914d\u7f6e\u6587\u4ef6\u8bbe\u7f6e\u6743\u9650;<br \/>\n5\u3001<\/p>\n<blockquote class=\"notranslate\"><p>vi \/etc\/ssh\/sshd_config<\/p><\/blockquote>\n<p>\u6253\u5f00sshd_config\u914d\u7f6e\u6587\u4ef6;<br \/>\n6\u3001\u627e\u5230PasswordAuthentication\uff0c\u503c\u6539\u4e3ayes;<br \/>\n7\u3001\u627e\u5230PermitRootLogin\uff0c\u503c\u6539\u4e3ayes;<br \/>\n8\u3001<\/p>\n<blockquote class=\"notranslate\"><p>sudo chmod 644 \/etc\/ssh\/sshd_config<\/p><\/blockquote>\n<p>9\u3001service sshd restart\u91cd\u542fsshd\u670d\u52a1\u6216\u8005\u91cd\u542fVPS\uff0c\u5927\u529f\u544a\u6210\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5148\u7528AMS\u7684\u5bc6\u94a5\u5bf9\u767b\u9646; 2\u3001\u6267\u884c sudo passwd root \u4e3aroot\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801\uff1b 3\u3001\u6267\u884cs&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,6,5],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-ubuntu","tag-vps"],"_links":{"self":[{"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bd6mm.cn\/blog\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}