查看并下载最新版本
https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/
解压
tar zxvf openssh-8.4p1.tar.gz
cd openssh-8.4p1.tar.gz
// 注意修改ssl的位置
./configure --prefix=/usr/ --sysconfdir=/etc/ssh --with-zlib --with-pam --with-md5-password --with-tcp-wrappers --with-ssl-dir=/usr/local/openssl1.1.1i
make && make install
ssh -V
vim /etc/ssh/sshd_config
然后重启sshd