ubuntu 16.04 的openssh 版本是7.2,會有一些安全問題。須要升級到7.4版本以上。git
openssh依賴 libssl-dev zlib1g-dev。離線安裝須要將這幾個包下載下來。同時須要下載libssl包做爲libssl-dev的依賴。github
安裝過程以下:ubuntu
sudo apt install -y build-essential libssl-dev zlib1g-dev wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz" tar xfz openssh-7.4p1.tar.gz cd openssh-7.4p1 ./configure make sudo make install
https://gist.github.com/techgaun/df66d37379df37838482c4c3470bc48e安全