# yum Install Pam-devel
Zlib
# tar XZVF zlib-1.2.3.tar.gz
# CD zlib-1.2.3
#./configure--prefix=/usr/local/zlib
# make
# make Install
Openssl
# tar XZVF openssl-0.9.8d.tar.gz
# CD openssl-0.9.8d
#./configure
#./CONIFG--prefix=/usr/local/openssl
# make
# Make Test
# make Install
OpenSSH
# tar XZVF openssh-4.5p1.tar.gz
# CD OPENSSH-4.5P1
#./configure--prefix=/usr--sysconfdir=/etc/ssh \
--with-pam--with-zlib=/usr/local/zlib \
--with-ssl-dir=/usr/local/openssl--with-md5-passwords
# make
# make Install
To change the configuration file Sshd_config
# Vi/etc/ssh/sshd_config
X11forwarding No
Protocol 2
# CD Contrib/redhat
# CP Sshd.init/etc/init.d/sshd
# chmod +x/etc/init.d/sshd
# chkconfig--add sshd
Validation methods
# ssh-v
This article is from the "Jtao" blog, please be sure to keep this source http://hyjtao.blog.51cto.com/2385891/1627068
Linux Source Upgrade Openssh