1.升级后一直重启使用一下方案服务启动成功

解决方案 亲测有用
systemctl stop sshd
rm -rf /lib/systemd/system/sshd.service
systemctl daemon-reload
# openssh-9.7p1是你最开始tar解压的目录,而不是安装后的目录
cp openssh-9.7p1/contrib/redhat/sshd.init /etc/init.d/sshd
/etc/init.d/sshd restart 或者 systemctl start sshd
systemctl enable sshd
1.升级后报错:fatal: daemon() failed: No such device

fatal: daemon() failed: No such device
mv /dev/null /dev/nullbak20240426
mknod /dev/null c 1 3
chmod 666 /dev/null