!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>centos6升级openssh+openssl

centos6升级openssh+openssl

脚本自动处理(推荐)

1、远程登录服务器下载脚本 :wget http://downinfo.myhostadmin.net/vps/openssl.sh

2、然后执行:sh openssl.sh

手工处理方法

一、安装openssl

依次执行下面命令

cd /tmp
wget -c https://www.openssl.org/source/openssl-1.0.2l.tar.gz
tar zxvf openssl-1.0.2l.tar.gz
cd openssl-1.0.2l
./config --prefix=/usr --shared
make -j4 && make install
openssl version -a

安装好了显示如下图

centos6升级openssh+openssl

只能使用openssl1.0.*的版本 ,openssl1.1.0及以上不兼容 ,可查看openssh安装说明

centos6升级openssh+openssl

使用openssl1.1.*版本编译openssh时会出现下面的错误

centos6升级openssh+openssl

二、升级openssh

依次执行下面命令

yum install -y pam-devel
cd /usr/local/src
wget -c https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz
tar zxvf openssh-7.5p1.tar.gz
cd openssh-7.5p1
./configure --sbindir=/usr/sbin/  --bindir=/usr/bin/ --sysconfdir=/etc/ssh  --with-ssl-engine --with-pam
make -j4 && make install
echo \'PermitRootLogin yes\' >> /etc/ssh/sshd_config
service sshd restart

显示如下图就是编译拷贝好了

centos6升级openssh+opensslsshd -h #查看版本
centos6升级openssh+openssl

注意:安装完成后不要马上断开连接

先测试多测试几下是否能够新建连接

如果能:安装完成,可以退出连接

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

Linux系统云服务器查看/启用网站日志

2021-4-17 20:28:40

服务器教程

多IP应用云主机切换出口IP地址[Linux系统教程]

2021-4-17 20:28:43

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase