centos7 升级OpenSSH 和OpenSSL
资源包:
Openssl:
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
Openssh:http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.8p1.tar.gz
1,安装openssl
安装所需要的工具包
yum install -y gcc gcc-c++ glibc make autoconf openssl openssl-devel pcre-devel pam-devel
yum install -y pam* zlib*
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
cd openssl-1.1.1i/
./config --prefix=/usr/local/openssl
make
make install
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
echo “/usr/local/openssl/lib” >> /etc/ld.so.conf
openssl version
出现如下图说明ok:
2,安装openssh
chmod 600 /etc/ssh/* #权限要改为600,否则会报警
http://ft