天天看点

The server supports these methods: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519

OpenSSH发布8.8sp1,赶紧测试下升级.

环境还是用CentOS8.3.之前已经升级到8.7sp1.

升级完毕后,测试连接ssh,结果失败,提示如下: 

Key exchange failed

no imcompatible hotkey.The server supports these methods: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519

尝试修改配置文件无果。

仔细检查,可能编译安装时参数有误,ssl的路径写错了。于是修改改参数如下:

--with-ssl-dir=/usr

再次编译测试。

./configure --prefix=/usr/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/ssl --with-pam --with-zlib --without-openssl-header-checkmake

make 

make install

问题消失

继续阅读