修复安全漏洞CVE-2024-6387
根据需要上传centos7_openssh-9.8.tar包到/opt目录
解压
tar -xvzf centos7_openssh-9.8.tar
cd centos7_openssh-9.8.tar/
rpm -Uvh openssh-*.rpm
ssh -V
vi /etc/ssh/sshd_config
“PermitRootLogin yes
PasswordAuthentication yes”
chown root:root /etc/ssh/*
chmod 600 /etc/ssh/*
systemctl restart sshd