因服务器扫描漏洞故需要升级openssh。openssh官网:https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/。建议下载最新版,我这里以安装编译openssh-8.4p1版本来做,以下为升级openssh的方法步骤:
ps:首先你的服务器必须能用yum安装一些依赖包。
- 查看服务器openssh版本信息。
[root@test ~]# ssh -V
OpenSSH_8.0p1, OpenSSL 1.0.2r 26 Feb 2019
- 查看服务器版本。
[root@test ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
- 安装telnet-server以及xinetd。
[root@linux ~]# yum install xinetd telnet-server -y
Loaded plugins: fastestmirrorLoading mirror
speeds from cached hostfile
..................
Nothing to do
[root@linux-node3 ~]#
- 配置telent(建议直接复制)。
[root@linux ~]# cat /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentica