CentOS5.x下用YUM升级OpenSSH和OpenSSL

 


CentOS5.x下用YUM升级OpenSSH和OpenSSL

最近有些客户希望升级openssh和ssl,发现CentOS默认的库无法直接升级,可以下面的升级命令:

1.查看当前ssh的版本:
[root@CentOS ~]# ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

2.升级ssh:
[root@CentOS ~]# wget http://www.ctohome.com/linux-vps-pack/webmin/upgrade-openssh.sh;sh upgrade-openssh.sh;

3.如果你发现还是ssh4.x版本,而且提示有错误:
openssh-clients-5.5p1-24.el5.i386 from centalt has depsolving problems
  --> Missing Dependency: libedit.so.0 is needed by package openssh-clients-5.5p1-24.el5.i386 (centalt)
Error: Missing Dependency: libedit.so.0 is needed by package openssh-clients-5.5p1-24.el5.i386 (centalt)
 You could try using --skip-broken to work around the problem

那么,先需要安装libedit0类库,如下:

centos 5.x 32位用如下命令安装

rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/stable/libedit0-3.0-1.20090722cvs.el5.i386.rpm

centos 5.x 64位用如下命令安装

rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el5-x86_64/atrpms/stable/libedit0-3.0-1.20090722cvs.el5.x86_64.rpm

然后重新执行命令:

wget http://www.ctohome.com/linux-vps-pack/webmin/upgrade-openssh.sh;sh upgrade-openssh.sh;

附:升级php5.2

如果你还是用的php5.1,也可以考虑这个脚本: 一键升级php5.2

wget http://www.CTOHome.com/linux-vps-pack/php5.2.sh;sh php5.2.sh;

你可能感兴趣的:(centos,centos,OpenSSL,openssh,休闲,5.x)