升级 CentOS 6.5 上的 OpenSSH 至 6.8p1 版

升级 CentOS 6.5 上的 OpenSSH 至 6.8p1 版:

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-6.8p1.tar.gz

tar zxvf openssh-6.8p1.tar.gz

cd openssh-6.8p1

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

yum install systemtap-client git

标签: 服务器, centos, openssh

评论已关闭