下载 查看并下载最新版本 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 编译安装 openssh openssh