1
2
3
4
5
6
7
8
9
10
11
12
| mv /etc/ssh /etc/ssh.bak
yum -y install gcc* make perl pam pam-devel zlib zlib-devel openssl-devel
wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.1p1.tar.gz
tar zxvf openssh-7.1p1.tar.gz
cd openssh-7.1p1
yum -y remove systemtap-client git openssh
vi version.h
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords
make && make install && make clean
cp contrib/redhat/sshd.init /etc/init.d/sshd
chkconfig --add sshd
service sshd start
|