{"id":155,"date":"2017-05-06T13:14:48","date_gmt":"2017-05-06T05:14:48","guid":{"rendered":"http:\/\/blog.ypcun.com\/?p=155"},"modified":"2017-05-06T13:14:48","modified_gmt":"2017-05-06T05:14:48","slug":"ubuntu%e5%88%9b%e5%bb%banologin%e7%94%a8%e6%88%b7%e7%94%a8%e4%ba%8ebitvise%e7%a7%91%e5%ad%a6%e4%b8%8a%e7%bd%91","status":"publish","type":"post","link":"https:\/\/xiit.cn\/index.php\/2017\/05\/06\/ubuntu%e5%88%9b%e5%bb%banologin%e7%94%a8%e6%88%b7%e7%94%a8%e4%ba%8ebitvise%e7%a7%91%e5%ad%a6%e4%b8%8a%e7%bd%91\/","title":{"rendered":"Ubuntu\u521b\u5efanologin\u7528\u6237\u7528\u4e8eBitvise SSH\u79d1\u5b66\u4e0a\u7f51"},"content":{"rendered":"<p>\u9996\u5148\u67e5\u770b\/etc\/shells\u4e2d\u6709\u6ca1\u6709\/sbin\/nologin\uff08debian\u548cUbuntu\u4e0b\u4e3a\/usr\/sbin\/nologin)<br \/>\n<code>cat \/etc\/shells<\/code><br \/>\n# \/etc\/shells: valid login shells<br \/>\n\/bin\/sh<br \/>\n\/bin\/dash<br \/>\n\/bin\/bash<br \/>\n\/bin\/rbash<br \/>\n\u6ca1\u6709\u7684\u8bdd\u52a0\u4e0a\/usr\/sbin\/nologin<br \/>\n<code>echo \"\/usr\/sbin\/nologin\" >> \/etc\/shells<\/code><br \/>\n\u7136\u540e\u6dfb\u52a0\u65b0\u7528\u6237\uff0c\u5176\u4e2dM\u4e3a\u4e0d\u4e3a\u8be5\u7528\u6237\u521b\u5efa\u4e3b\u76ee\u5f55\uff0c-s\u4e3a\u6307\u5b9a\u8be5\u7528\u6237\u767b\u5f55\u7684shell<br \/>\n<code>useradd -M -s \/usr\/sbin\/nologin vincent<\/code><br \/>\n\u5176\u5b83\u7cfb\u7edf\u662f<br \/>\n<code>useradd -M -s \/sbin\/nologin vincent<\/code><br \/>\n\u4fee\u6539\u5bc6\u7801<br \/>\n<code>passwd ******<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u67e5\u770b\/etc\/shells\u4e2d\u6709\u6ca1\u6709\/sbin\/nologin\uff08debian\u548cUbuntu\u4e0b\u4e3a\/usr\/sb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[25,42],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-bitvise","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiit.cn\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}