标签:openssh
yum -y install gcc* make perl pam pam-devel mv /etc/ssh /etc/ssh.bak openssl version -a rpm -qa | grep openssh rpm -e `rpm -qa | grep openssh` --nodeps tar zxvf openssh-6.7p1.tar.gz
cd openssh-6.7p1
vim openssh-3.x/version.h
找到
#define SSH_VERSION "OpenSSH_6.7"
修改后编译安装
./configure --prefix=/usr/local/openssh --sysconfdir=/etc/ssh make make install
cp contrib/redhat/sshd.init /etc/init.d/sshd chmod +x /etc/init.d/sshd ###edit number25 and number41 vim /etc/init.d/sshd chkconfig --add sshd service sshd start vim /etc/ssh/sshd_config service sshd restart sshd -V /usr/local/openssh/sbin/sshd -v
本文出自 “StarSeven” 博客,请务必保留此出处http://lcpljc.blog.51cto.com/200989/1857054
标签:openssh
原文地址:http://lcpljc.blog.51cto.com/200989/1857054