<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Msin磨事</title><link>http://www.msin.ren/</link><description>好事多磨</description><item><title>CentOS7 升级ssh，修复漏洞，基于远端</title><link>http://www.msin.ren/?id=3</link><description>&lt;h3 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-升级说明：&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(23, 43, 77); font-size: 16px; line-height: 1.5; letter-spacing: -0.006em; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;升级说明：&lt;/h3&gt;&lt;ul style=&quot;margin-top: 10px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;1、升级OpenSSH后，原有公钥失效，信任关系需要重新配置；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2、升级过程需要停止sshd服务，会导致ssh和sftp无法使用；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;3、升级需要关闭防火墙服务；确保管理机器可访问被管理机器的23端口&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;4、升级需要关闭selinux服务；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;5、升级前需要开启telnet，防止升级失败，系统无法登录，对应的防火墙需要开启23端口，安装需要telnet相关包（推荐通过系统ISO安装）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;6、升级过程中需要刷新lib库：ldconfig -v；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;7、升级顺序：顺序是zlib库-&amp;gt; openssl -&amp;gt; openssh；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;8、升级需要gcc、make、perl、zlib、zlib-devel、pam、pam-devel依赖包；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;9、本文档是在服务器网络正常状态下进行升级，不确保万无一失，根据主机的重要性自行进行评估&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;10、本文档的命令都是在root用户上执行，sudo用户自行加上sudo&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div id=&quot;main-content&quot; class=&quot;wiki-content&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-一、升级前准备&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-weight: normal; font-size: 20px; line-height: 1.5; letter-spacing: -0.008em; border-bottom-color: rgb(255, 255, 255);&quot;&gt;一、升级前准备&lt;/h2&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; padding: 0px;&quot;&gt;注意：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;确保yum源可用并处于正常状态，yum clean all &amp;amp;&amp;amp; yum makecache&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;确保有密码登录用户并且有sudo权限，用于telnet登录&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-1.安装telnet服务&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;1.安装telnet服务&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;安装telnet 服务，用于卸载ssh后的操作&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_964646&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;8&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;9&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;10&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;11&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1457&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;yum&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-y telnet-server xinetd&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#安装telnet-server xinetd 服务&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl start telnet.socket&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#启动telnet&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl start&amp;nbsp; xinetd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#启动xinetd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;cp&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/securetty&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/securetty&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.bak&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#备份安全文件&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;echo&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash string&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(42, 0, 255) !important;&quot;&gt;&amp;#39;pts/0&amp;#39;&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/securetty&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#允许telnet访问最高权限控制台&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;echo&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash string&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(42, 0, 255) !important;&quot;&gt;&amp;#39;pts/1&amp;#39;&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/securetty&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#允许telnet访问最高权限控制台&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;echo&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash string&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(42, 0, 255) !important;&quot;&gt;&amp;quot;pts/2&amp;quot;&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/securetty&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl restart telnet.socket&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;enable&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;xinetd.service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#配置开机启动，防止操作过程中机器重启后无法连接&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;enable&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;telnet.socket&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none rgb(255, 255, 255); border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; min-height: inherit; color: rgb(51, 51, 51);&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl restart telnet.socket&lt;/code&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-2.创建用于telnet登录的用户（如果已有，此步骤跳过）&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;2.创建用于telnet登录的用户（如果已有，此步骤跳过）&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;创建用户&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_957405&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;useradd&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;upsshd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#创建用户&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;passwd&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;upsshd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#修改密码 echo IO5QBPtBxztnh1dM1seC== |passwd --stdin upsshd #不建议这样echo执行&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;echo&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash string&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(42, 0, 255) !important;&quot;&gt;&amp;#39;upsshd ALL=(ALL)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL&amp;#39;&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/sudoers&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#给与用户sudo权限 ，如果有root密码，此步可以跳过&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl restart telnet.socket&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#重启telnet服务&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-3.安装基础组件&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;3.安装基础组件&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;安装基础组件&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_580456&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;yum&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;openssl-devel gcc-c++ pam-devel pam gcc&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;make&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;perl zlib zlib-devel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#安装所需组件&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;rpm -qa |&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;egrep&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash string&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(42, 0, 255) !important;&quot;&gt;&amp;quot;gcc|make|perl|zlib|zlib-devel|pam|pam-devel&amp;quot;&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#查看组件是否都已安装&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-二、升级ssh服务&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-weight: normal; font-size: 20px; line-height: 1.5; letter-spacing: -0.008em; border-bottom-color: rgb(255, 255, 255);&quot;&gt;二、升级ssh服务&lt;/h2&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; padding: 0px;&quot;&gt;注意：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;本次教程升级的是目前最新版：&lt;a href=&quot;http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.3p1.tar.gz&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot; style=&quot;color: rgb(0, 82, 204); text-decoration-line: none;&quot;&gt;openssh-8.3p1.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;确保telnet服务正常并且能够登录，以下操作开始采用telnet登录进行操作&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-1.卸载旧服务&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;1.卸载旧服务&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;卸载旧服务&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_984711&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;7&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;ssh&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#查看当前ssh版本&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;rpm -qa |&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;grep&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;openssh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#列出当前已安装的openssh软件包&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl stop sshd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#停止ssh服务&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;cp&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-r&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.old&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#备份原有ssh配置&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;rpm -e --nodeps openssh-clients&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#卸载上条命令列出的软件包&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;rpm -e --nodeps openssh&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;rpm -e --nodeps openssh-server&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 id=&quot;CentOS7升级ssh，修复漏洞，基于远端-2.编译安装新服务&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;2.编译安装新服务&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;编译安装新版本&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_608011&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;8&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;9&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;10&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;11&lt;/div&gt;&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;12&lt;/div&gt;&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;13&lt;/div&gt;&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;14&lt;/div&gt;&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;15&lt;/div&gt;&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;16&lt;/div&gt;&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;17&lt;/div&gt;&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;18&lt;/div&gt;&lt;div class=&quot;line number19 index18 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;19&lt;/div&gt;&lt;div class=&quot;line number20 index19 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;20&lt;/div&gt;&lt;div class=&quot;line number21 index20 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;21&lt;/div&gt;&lt;div class=&quot;line number22 index21 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;22&lt;/div&gt;&lt;div class=&quot;line number23 index22 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;23&lt;/div&gt;&lt;div class=&quot;line number24 index23 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;24&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1457&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;v&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-m700 -d&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/var/lib/sshd&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#重置目录权限&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;chown&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;v&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;root:sys&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/var/lib/sshd&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#重置目录权限&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;userdel&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;ssh&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;amp;&amp;amp; groupdel&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;ssh&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#删除原有sshd用户和组&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;groupadd -g 74 sshd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#重新创建sshd用户和组&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;useradd&lt;/code&gt;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-c&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash string&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(42, 0, 255) !important;&quot;&gt;&amp;#39;sshd PrivSep&amp;#39;&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;\&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-d&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/var/lib/sshd&lt;/code&gt;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;\&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-g sshd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-s&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/bin/false&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;\&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-u 74 sshd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;wget http:&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;//ftp&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.openbsd.org&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/pub/OpenBSD/OpenSSH/portable/openssh-8&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.3p1.&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;tar&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.gz&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;tar&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-xf openssh-8.3p1.&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;tar&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.gz&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;cd&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;openssh-8.3p1/&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/configure&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;--prefix=&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/usr&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;\&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#设置选项sshd&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;--sysconfdir=&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;\&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;--with-md5-passwords&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;--with-privsep-path=&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/var/lib/sshd&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;\&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;--with-zlib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;--with-pam&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number19 index18 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;make&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#编译&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number20 index19 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;chmod&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;600&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh/ssh_host_rsa_key&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#修改文件权限&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number21 index20 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;chmod&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;600&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh/ssh_host_ecdsa_key&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number22 index21 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;chmod&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;600&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh/ssh_host_ed25519_key&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number23 index22 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;make&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#安装&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number24 index23 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;ssh&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#验证版本&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;auto-cursor-target&quot; id=&quot;CentOS7升级ssh，修复漏洞，基于远端-3.额外安装步骤&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;3.额外安装步骤&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;额外安装步骤&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_306276&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;6&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;v&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-m755&amp;nbsp;&amp;nbsp;&amp;nbsp; contrib&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/ssh-copy-id&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/usr/bin&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;amp;&amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#安装额外组件和文档&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;v&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-m644&amp;nbsp;&amp;nbsp;&amp;nbsp; contrib&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/ssh-copy-id&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.1 \&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/usr/share/man/man1&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;&amp;amp;&amp;amp;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;v&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-m755 -d&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/usr/share/doc/openssh-8&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.3p1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;install&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-&lt;/code&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;v&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-m644&amp;nbsp;&amp;nbsp;&amp;nbsp; INSTALL LICENCE OVERVIEW README* \&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash spaces&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/usr/share/doc/openssh-8&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.3p1&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;auto-cursor-target&quot; id=&quot;CentOS7升级ssh，修复漏洞，基于远端-4.恢复sshd配置&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;4.恢复sshd配置&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;恢复ssh配置&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_47289&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;mv&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh/sshd_config&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh/sshd_config&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.new.bak&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#备份配置&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;cp&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.old&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/sshd_config&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/ssh/sshd_config&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#恢复原配置&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;auto-cursor-target&quot; id=&quot;CentOS7升级ssh，修复漏洞，基于远端-5.sshd服务配置&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 16px; line-height: 1.5; letter-spacing: -0.006em;&quot;&gt;5.sshd服务配置&lt;/h3&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;ssh服务配置&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_153347&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;5&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;cp&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;-p contrib&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/redhat/sshd&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.init&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/init&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.d&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/sshd&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;code class=&quot;bash comments&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(63, 95, 191) !important;&quot;&gt;#配置sshd开机启动&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash functions&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: rgb(255, 20, 147) !important;&quot;&gt;chmod&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;+x&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/etc/init&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;.d&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;/sshd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;chkconfig --add sshd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;chkconfig sshd on&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl restart sshd&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 class=&quot;auto-cursor-target&quot; id=&quot;CentOS7升级ssh，修复漏洞，基于远端-三、还原telnet配置&quot; style=&quot;margin: 30px 0px 0px; padding: 0px; font-weight: normal; font-size: 20px; line-height: 1.5; letter-spacing: -0.008em; border-bottom-color: rgb(255, 255, 255);&quot;&gt;三、还原telnet配置&lt;/h2&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; padding: 0px;&quot;&gt;注意：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;操作这之前需确认sshd服务能正常登录，和开机启动正常&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;telnet服务采用的是明文传输，及其不安全，确认ssh服务正常后需尽快关闭&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 0px; padding: 0px;&quot;&gt;1.还原telnet&lt;/p&gt;&lt;div class=&quot;code panel pdl conf-macro output-block&quot; data-hasbody=&quot;true&quot; data-macro-name=&quot;code&quot; style=&quot;margin: 10px 0px; padding: 0px; color: rgb(51, 51, 51); border: 1px solid rgb(223, 225, 229); overflow: auto; border-radius: 3px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader pdl&quot; style=&quot;margin: 0px; padding: 5px 15px; border-bottom: 1px solid rgb(204, 204, 204); background: rgb(245, 245, 245); overflow: hidden; position: relative;&quot;&gt;&lt;strong&gt;还原还telnet&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent pdl&quot; style=&quot;margin: 0px; padding: 0px; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 20px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;&quot;&gt;&lt;div style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;div id=&quot;highlighter_451208&quot; class=&quot;syntaxhighlighter sh-eclipse  bash&quot; style=&quot;margin: 0px; padding: 0px; width: 1510px; position: relative; overflow: auto; font-size: 1em;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;1510&quot; height=&quot;NaN&quot; style=&quot;width: 1430px;&quot;&gt;&lt;tbody style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;tr style=&quot;border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot; class=&quot;firstRow&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;border-radius: 0px; background: rgb(245, 245, 245); border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-color: rgb(204, 204, 204); inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0px 0px 15px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit; color: rgb(112, 112, 112);&quot; width=&quot;NaN&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;margin: 0px; padding: 0px 0.5em 0px 1em; border-radius: 0px; background: none; border-top: 0px; border-right: none; border-bottom: 0px; border-left: 0px; border-image: initial; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; text-align: right; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; white-space: pre;&quot;&gt;8&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;border-width: 0px; border-style: initial; border-color: initial; background: none; overflow: visible; border-radius: 0px; inset: auto; float: none; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; position: static; vertical-align: baseline; box-sizing: content-box; min-height: inherit;&quot; width=&quot;1465&quot; height=&quot;NaN&quot;&gt;&lt;div class=&quot;container&quot; title=&quot;Hint: double-click to select code&quot; style=&quot;margin: 15px 0px 0px; padding: 0px 0px 15px; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: relative; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl stop telnet.socket&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl stop xinetd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl disable telnet.socket&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;systemctl disable xinetd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;yum remove telnet-server&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;yum remove xinetd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;userdel upsshd&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;margin: 0px; padding: 0px 1em; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; outline: 0px; overflow: visible; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; text-wrap: nowrap;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; border-radius: 0px; background: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: black !important;&quot;&gt;groupdel upsshd&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;https://confluence.msin.ren/pages/viewpage.action?pageId=3440734&quot; class=&quot;like-button&quot; style=&quot;color: rgb(0, 82, 204); text-decoration-line: none; display: block; float: left;&quot;&gt;&lt;span class=&quot;aui-icon aui-icon-small aui-iconfont-like&quot; style=&quot;background-repeat: no-repeat; background-position: 0px 0px; border: none; display: inline-block; height: 16px; margin: 0px; padding: 0px; text-indent: -999em; vertical-align: text-bottom; width: 16px; line-height: 0; position: relative; color: #505F79;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 07 Mar 2024 11:39:44 +0800</pubDate></item></channel></rss>