CentOS6.5 openssh升级到openssh-7.6版本
2018-8-3 foooy
升级前保证故障后能现场处理,或者远程卡处理,否则不要这样直接升级
yum install -y gcc openssl-devel pam-devel rpm-build
wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.6p1.tar.gz
cp -rf /etc/ssh /etc/ssh.bak
tar -zxvf openssh-7.6p1.tar.gz
cd openssh-7.6p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords --with-tcp-wrappers
make && make install
vim /etc/ssh/sshd_config
#PermitRootLogin yes
修改为
PermitRootLogin yes
service sshd restart
ssh -V
OpenSSH_7.6p1, OpenSSL 1.0.1e-fips 11 Feb 2013
发表评论:
昵称
邮件地址 (选填)
个人主页 (选填)