Ubuntu16 ssh升级到8.2

#https://blog.csdn.net/weixin_39845407/article/details/80922488

su root
mkdir update
cd update
wget 10.249.176.191:8000/libpam0g_1.1.8-3.2ubuntu2.1_amd64.deb 
wget 10.249.176.191:8000/libpam0g-dev_1.1.8-3.2ubuntu2.1_amd64.deb  
wget 10.249.176.191:8000/libssl-dev_1.0.2g-1ubuntu4.17_amd64.deb  
wget 10.249.176.191:8000/openssh-8.1p1.tar.gz   
wget 10.249.176.191:8000/telnet_0.17-40_amd64.deb   
wget 10.249.176.191:8000/z.deb
wget 10.249.176.191:8000/libssl1.0.0_1.0.2g-1ubuntu4.17_amd64.deb   
wget 10.249.176.191:8000/openbsd-inetd_0.20140418-2_amd64.deb     
wget 10.249.176.191:8000/openssl-1.0.2g.tar.gz  
wget 10.249.176.191:8000/telnetd_0.17-40_amd64.deb  
wget 10.249.176.191:8000/zlib-1.2.11.tar.gz
dpkg -i openbsd-inetd_0.20140418-2_amd64.deb telnetd_0.17-40_amd64.deb telnet_0.17-40_amd64.deb
/etc/init.d/openbsd-inetd restart
cp -r /etc/ssh /etc/ssh.bck


#选择账号 输入密码
#测试telnet是否打开
#以下操作均在telnet中进行
su root

service ssh stop
tar xf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr/local/zlib
make && make install
#出问题的话
#make clean
#./configure --shared
#make test
#make install
#cp zutil.h /usr/local/include
#cp zutil.c /usr/local/include
cd ..

tar xf openssl-1.0.2g.tar.gz
cd openssl-1.0.2g 
./config shared zlib          
make depend
make install
mv /usr/bin/openssl /usr/bin/openssl.bak 
mv /usr/include/openssl /usr/include/openssl.bak 
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl 
ln -s /usr/local/ssl/include/openssl /usr/include/openssl 
echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl.conf
ldconfig  
cd ..
openssl version -a


dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.17_amd64.deb libssl-dev_1.0.2g-1ubuntu4.17_amd64.deb z.deb libpam0g_1.1.8-3.2ubuntu2.1_amd64.deb libpam0g-dev_1.1.8-3.2ubuntu2.1_amd64.deb
tar xfz openssh-8.1p1.tar.gz
cd openssh-8.1p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-pam --with-zlib --with-ssl-dir=/usr/local/ssl --with-privsep-path=/var/lib/sshd
make && make install
systemctl unmask ssh           
systemctl restart ssh

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值