openssh版本升级至 openssh-9.5p1

原创
01/16 04:22
阅读数 23
[root@localhost ~]# sshd -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
yum groupinstall -y "Development Tools"
yum install -y imake rpm-build pam-devel krb5-devel zlib-devel libXt-devel libX11-devel gtk2-devel perl-IPC-Cmd
git clone https://github.com/boypt/openssh-rpms.git
cd openssh-rpms/downloads/
wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.5p1.tar.gz
wget -c https://www.openssl.org/source/openssl-3.0.11.tar.gz --no-check-certificate
tar -xf x11-ssh-askpass-1.2.4.1.tar.gz
tar -xf openssh-9.5p1.tar.gz
tar -xf openssl-3.0.11.tar.gz
cd ..
./compile.sh

cd /usr/src/soft/openssh-rpms/el7/RPMS/x86_64

[root@localhost x86_64]# rpm -Uvh *.rpm
[root@localhost x86_64]# sshd -v
unknown option -- v
OpenSSH_9.5p1, OpenSSL 3.0.11 19 Sep 2023

chmod 600 /etc/ssh/ssh_host_rsa_key
chmod 600 /etc/ssh/ssh_host_ecdsa_key
chmod 600 /etc/ssh/ssh_host_ed25519_key

systemctl restart sshd 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部