OpenSSH 8.8推出已经有2个月了。
本想第一时间完成升级,结果在CentOS 7系统上升级不成功。
无法启动sshd服务。经过上百次测试,终于安装成功。
测试环境是CentOS7.4,SSH版本7.4
用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
保存,然后备份该文件。本测试是在/root下创建etc目录保存备份。
确认sellinux已经关闭。
从官网下载安装包,并解包。
编辑脚本如下:
#!/bin/bash
cd openssh-8.8p1
cp contrib/redhat/sshd.init /etc/init.d/sshd
chmod +x /etc/init.d/sshd
#cd openssh-8.8p1