码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 源码升级 Openssh

时间:2015-04-01 07:14:15      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:linux 源码升级 openssh

# 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

标签:linux 源码升级 openssh

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!