手动升级 openssh-server
下载解压缩
wget http://ftp.jaist.ac.jp/pub/OpenBSD/OpenSSH/portable/openssh-7.6p1.tar.gz
tar -zxvf openssh-7.6p1.tar.gz
安装依赖库
sudo apt install zlib1g-dev libssl-dev
cd openssh-7.6p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-zlib --with-md5-passwords
make
sudo make install
备份原来的sshd
cd /usr/sbin/
sudo mv /usr/sbin/sshd /usr/sbin/sshd.old
复制新的sshd
sudo cp ~/openssh-7.6p1/sshd /usr/sbin重启服务/etc/init.d/ssh restart