首页 > 系统服务 > 详细

Linux 源码升级 Openssh

时间:2015-04-01 07:11:24      阅读:342      评论:0      收藏:0      [点我收藏+]

# 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


更改配置文件 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 


验证方法
# ssh -V

本文出自 “Jtao'Blog” 博客,请务必保留此出处http://hyjtao.blog.51cto.com/2385891/1627068

Linux 源码升级 Openssh

原文:http://hyjtao.blog.51cto.com/2385891/1627068

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!