Linux 升级 Openssh-6.6p1

# yum install pam-devel

Zlib
# tar xzvf zlib-1.2.8.tar.gz
# cd zlib-1.2.8
# ./configure --prefix=/usr/local/zlib
# make
# make install

OpenSSL
# tar xzvf openssl-1.0.2a.tar.gz
# cd openssl-1.0.2a
# ./Configure
# ./conifg --prefix=/usr/local/openssl
# make
# make test
# make install

OpenSSH
# tar xzvf openssh-6.6p1.tar.gz
# cd openssh-6.6p1
# ./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

修改ssh在服务的配置文件

# 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

验证方法:

# ssh -V

posted on 2015-03-31 14:30  吓我一大蹦  阅读(1020)  评论(0)    收藏  举报

导航