CentOS 安装openssh-6.XX
安装openssh-6.0p1
1、安装依赖包
有遇到 报ZLIB有问题的,要安装以下包
rpm -ivh zlib-devel-1.2.3-3.*
rpm -ivh libsepol-devel-1.15.2-3.el5.*
rpm -ivh libselinux-devel-1.33.4-5.5.el5.*
rpm -ivh e2fsprogs-devel-1.39-23.el5.*
rpm -ivh keyutils-libs-devel-1.2-1.el5.*
rpm -ivh krb5-devel-1.6.1-36.el5_4.1.*
rpm -ivh openssl-devel-0.9.8e-12.el5_4.6.*
rpm -ivh pam-devel-0.99.6.2-6.el5_4.1.*
2、解压编译安装openssh
tar zxvf openssh-6.0p1.tar.gz
cd openssh-6.0p1
./configure --prefix=/usr --with-pam --with-md5-passwords --sysconfdir=/etc/ssh
make
make install
3、重启openssh
service sshd restart
4、查看openssh 当前版本确认是否升级到6.0
ssh -v