Centos

Centos 7升级OpenSSH

下载包 wget --no-check-certificate https://www.openssl.org/source/old/1.1.1/openssl-1.1.1w.tar.gz wget https://mirrors.aliyun.com/pub/OpenBSD/OpenSSH/portable/openssh-9.9p1.tar.gz 安装编译环境 sudo yum groupinstall -y "Development Tools" sudo yum install -y rpmdevtools imake libXt-devel gtk2-devel sudo yum install -y zlib-devel pam-devel krb5-devel 编译安装 tar xf openssl-1.1.1w.tar.gz cd openssl-1.1.1w ./config shared zlib -fPIC --prefix=/usr/local/openssl make -j 4 sudo make install cd /opt/software/openssh-9.9p1 ./configure --prefix=/usr/local/openssh --with-ssl-dir=/usr/local/openssl --with-zlib make -j 4 sudo make install sudo cp contrib/redhat/sshd.init /etc/init.d/sshd vi /usr/local/openssh/etc/sshd_config PermitRootLogin yes PubkeyAuthentication yes 安装前和安装后操作 sudo mv /usr/bin/openssl /usr/bin/openssl.

继续阅读