使用 SFTP 时未找到匹配的密钥交换方法

使用 SFTP 时未找到匹配的密钥交换方法

我的远程服务器(A)运行的是 RHEL 8 操作系统,另一台服务器(B)运行的是 RHEL 5。我需要通过 SFTP 连接到服务器 A 到 B。我使用了以下方法。

sftp [email protected]

但我遇到了以下错误。

Unable to negotiate with 10.58.148.111 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

然后我使用如下,

 sftp -oKexAlgorithms=+diffie-hellman-group1-sha1 [email protected]

然后我遇到了不同类型的错误..

ssh_dispatch_run_fatal: Connection to 10.58.148.111 port 22: error in libcrypto
Connection closed.  
Connection close

这是我的 ssh -v 输出。

debug1: kex: server->client cipher: aes256-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes256-ctr MAC: hmac-sha1 compression: none
debug1: kex: diffie-hellman-group1-sha1 need=32 dh_need=32
debug1: kex: diffie-hellman-group1-sha1 need=32 dh_need=32
 ssh_dispatch_run_fatal: Connection to 10.58.148.111 port 22: error in libcrypto

相关内容