{"id":81,"date":"2021-04-01T09:55:57","date_gmt":"2021-04-01T01:55:57","guid":{"rendered":"http:\/\/www.wayln.com\/?p=81"},"modified":"2021-04-01T10:00:23","modified_gmt":"2021-04-01T02:00:23","slug":"centos8%e5%bc%80%e5%90%afssh%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wayln.com\/?p=81","title":{"rendered":"Centos8\u5f00\u542fSSH\u670d\u52a1"},"content":{"rendered":"<ol>\n<li>\u68c0\u6d4b\u662f\u5426\u5b89\u88c5 openssh-server \uff0c\u8f93\u5165\u547d\u4ee4yum list installed | grep openssh-server<\/li>\n<li>\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa\uff0c\u8868\u793a\u6ca1\u6709\u5b89\u88c5<br \/>\n\u8f93\u5165\u5b89\u88c5\u547d\u4ee4yum install openssh-server<br \/>\n\u4f7f\u7528 vim \u6253\u5f00 sshd \u670d\u52a1\u914d\u7f6e\u6587\u4ef6\uff0c\u8f93\u5165\u547d\u4ee4 vim \/etc\/ssh\/sshd_config<br \/>\n\u5c06\u7b2c17\uff0c19\uff0c20\u884c\u524d\u7684#\u53f7\u53bb\u6389<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.wayln.com\/wp-content\/uploads\/2021\/04\/b75b569c1dd243be8a475561685693c2.jpg\" alt=\"\" \/><\/li>\n<li>\u5f00\u542f sshd \u670d\u52a1\uff0c\u8f93\u5165\u547d\u4ee4 sudo service sshd start<br \/>\n\u68c0\u6d4b sshd\u670d\u52a1\u662f\u5426\u5f00\u542f ps -e | grep sshd<\/li>\n<li>\u68c0\u6d4b 22 \u53f7\u7aef\u53e3\u662f\u5426\u5f00\u542f netstat -an | grep 22<\/li>\n<li>\u5c06 sshd \u670d\u52a1\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f\u52a8systemctl enable sshd.service<br \/>\n\u68c0\u6d4b\u662f\u5426\u5f00\u542fsystemctl list-unit-files | grep sshd<br \/>\n\u67e5\u770b Centos8 ip \u547d\u4ee4ifconfig<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u68c0\u6d4b\u662f\u5426\u5b89\u88c5 openssh-server \uff0c\u8f93\u5165\u547d\u4ee4yum list installed | grep op [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[10,1],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-image","hentry","category-linux","category-1","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":1,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}