韩国云服务器centos6升级openssh+openssl
云服务器
韩国云服务器centos6升级openssh+openssl
2026-01-21 15:07
韩国云服务器centos6手工处理方法一、安装openssl依次执行下面命令cd/tmpwget-chttps://www.openssl.org/source/openssl-1.0.2l.tar.gztarzxvfopenssl-1.0.2l.tar.gzcdopenssl-1.0.2l./config--prefix=/usr--sharedmake-j4&&makeinstallopensslversion-a安装好了显示如下图
只能使用openssl1.0.*的版本,openssl1.1.0及以上不兼容,可查看openssh安装说明
使用openssl1.1.*版本编译openssh时会出现下面的错误
二、升级openssh依次执行下面命令yuminstall-ypam-develcd/usr/local/srcwget-chttps://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gztarzxvfopenssh-7.5p1.tar.gzcdopenssh-7.5p1./configure--sbindir=/usr/sbin/--bindir=/usr/bin/--sysconfdir=/etc/ssh--with-ssl-engine--with-pammake-j4&&makeinstallecho'PermitRootLoginyes'>>/etc/ssh/sshd_configservicesshdrestart显示如下图就是编译拷贝好了sshd-h#查看版本注意:安装完成后不要马上断开连接先测试多测试几下是否能够新建连接如果能:安装完成,可以退出连接