#!/bin/bash echo `ssh -V` #OpenSSH_5.3p1 yum install -y gcc openssl openssl-devel wget cd /data/ wget http://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz tar zxvf openssh-8.0p1.tar.gz cd openssh-8.0p1/ ./configure --prefix=/usr --sysconfdir=/etc/ssh make && make install ssh -V #升级至8.0以上 service iptables stop cd /etc/ssh mv sshd_config sshd_config.bak wget -N http://211.103.207.119:81/ssh_53263/sshd_config service sshd restart