Redhat Linux升级SSH

升级OpenSSL
CODE:[Copy to clipboard]
cd /usr/local/src
wget http://www.openssl.org/source/openssl-0.9.7e.tar.gz
tar xzvf openssl-0.9.7e.tar.gz
cd openssl-0.9.7e
./config --prefix=/usr/local/openssl-0.9.7e
make
make test
make install
升级OpenSSH(依照最新的OpenSSL)
CODE:[Copy to clipboard]
cd /usr/local/src
wget http://gulus.usherbrooke.ca/pub/appl/ssh/OpenSSH/portable/openssh-3.9p1.tar.gz
tar xzvf openssh-3.9p1.tar.gz
cd openssh-3.9p1
./configure --prefix=/usr --with-pam --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/openssl-0.9.7e --with-md5-passwords --mandir=/usr/share/man
(如果你自己编译安装了zlib,就加--with-zlib=DIR这个参数,如果默认安装,就换成--with-zlib)
./configure --prefix=/usr --with-pam --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/openssl-0.9.7e --with-md5-passwords --mandir=/usr/share/man
make
make install
OK,现在ssh -V看一下版本吧
QUOTE:[root@server1 openssh-3.9p1]# ssh -V
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
[root@server1 openssh-3.9p1]#


打开http://www.openssh.org/zh-cn/index.html
找到下载页面 http://www.openssh.org/portable.html#http
例如 http://gulus.usherbrooke.ca/pub/appl/ssh/OpenSSH/portable/

cd /usr/local/src
wget http://gulus.usherbrooke.ca/pub/ ... penssh-3.9p1.tar.gz
tar xvzf openssh-3.9p1.tar.gz
cd openssh-3.9p1
./configure --prefix=/usr --with-pam --with-md5-passwords --sysconfdir=/etc/ssh
make
make install

正常情况已经升级完了,service sshd restart正常
ssh -V 已经显示新的版本
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值