本文共 726 字,大约阅读时间需要 2 分钟。
1 2 3 4 5 6 | 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"
修改后编译安装
1 2 3 | . /configure --prefix= /usr/local/openssh --sysconfdir= /etc/ssh make make install |
1 2 3 4 5 6 7 8 9 10 | 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 |