手动升级 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

相关文章:

  • 2021-08-05
  • 2021-08-29
  • 2021-07-17
  • 2022-01-12
  • 2021-11-06
  • 2021-07-20
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案