CentOS6升级OpenSSH 8.8p1跟CentOS7上升级方法类似。
测试环境是SSH版本8.7p1。
用root用户给/etc/ssh/sshd_config添加如下:
Ciphers aes128-ctr,aes192-ctr,aes256-ctr
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
保存,然后备份该文件(这步在升级OpenSSH8.7已经做过,这里强调一次。是从系统的默认版本升级,那么请一定先修改好)。本测试是在/root下创建etc目录保存备份。
确认sellinux已经关闭。
从官网下载安装包,并解包。
编辑脚本如下:
#!/bin/bash
/etc/init.d/sshd stop
cd openssh-8.8p1
cp contrib/redhat/sshd.init /etc/init.d/sshd
chmod +x /etc/init.d/sshd
#cd openssh-8.8p1