{"id":793,"date":"2021-07-08T18:37:56","date_gmt":"2021-07-08T10:37:56","guid":{"rendered":"https:\/\/www.shineskr.com\/?p=793"},"modified":"2021-07-08T18:39:36","modified_gmt":"2021-07-08T10:39:36","slug":"centos8-2%e5%8d%87%e7%ba%a7openssh%e8%87%b38-4","status":"publish","type":"post","link":"https:\/\/www.shineskr.com\/793.html","title":{"rendered":"CentOS8.2\u5347\u7ea7openssh\u81f38.4"},"content":{"rendered":"<p>wget https:\/\/cikeblog.com\/s\/<a href=\"https:\/\/www.shineskr.com\/tag\/openssh\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e openssh \u7684\u6587\u7ae0\" target=\"_blank\">openssh<\/a>8.4.zip<br \/>\nunzip <a href=\"https:\/\/www.shineskr.com\/tag\/openssh\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e openssh \u7684\u6587\u7ae0\" target=\"_blank\">openssh<\/a>8.4.zip<br \/>\n\u5907\u4efd\u914d\u7f6e\u6587\u4ef6<br \/>\ncp \/etc\/pam.d\/{sshd,sshd.bck}<br \/>\ncp \/etc\/ssh\/{sshd_config,sshd_config.bck}<br \/>\n\u5b89\u88c5<br \/>\nyum install .\/*.rpm<br \/>\n\u6062\u590d\u5907\u4efd\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u91cd\u542fsshd<br \/>\nmv \/etc\/ssh\/sshd_config.bck \/etc\/ssh\/sshd_config<br \/>\nmv \/etc\/pam.d\/sshd.bck \/etc\/pam.d\/sshd<br \/>\nsed -i '\/.*PermitRootLogin.*\/d' \/etc\/ssh\/sshd_config<br \/>\necho -e 'nPermitRootLogin yes' &gt;&gt; \/etc\/ssh\/sshd_config<br \/>\nsed -i '\/.*PasswordAuthentication.*\/d' \/etc\/ssh\/sshd_config<br \/>\necho -e 'nPasswordAuthentication yes' &gt;&gt; \/etc\/ssh\/sshd_config<br \/>\nchmod 600 \/etc\/ssh\/*<br \/>\nsystemctl restart sshd<br \/>\nssh -V<\/p>\n","protected":false},"excerpt":{"rendered":"wget https:\/\/cikeblog.com\/s\/openssh8.4.zip unzip openssh8.4.zip \u5907\u4efd\u914d\u7f6e\u6587\u4ef6 cp \/etc\/pam.d\/{sshd,sshd.bck} \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[97],"table_tags":[],"_links":{"self":[{"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/posts\/793"}],"collection":[{"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/comments?post=793"}],"version-history":[{"count":2,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/posts\/793\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/posts\/793\/revisions\/795"}],"wp:attachment":[{"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/media?parent=793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/categories?post=793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/tags?post=793"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/www.shineskr.com\/api\/wp\/v2\/table_tags?post=793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}