Plesk Migrator 不兼容的 ssh 对等体(没有可接受的 kex 算法)

Plesk Migrator 不兼容的 ssh 对等体(没有可接受的 kex 算法)

我正在尝试使用 Plesk Migrator 从 cpanel 服务器传输数据。我使用的是命令行版本,但我收到了一个似乎无法修复的错误。Plesk 的迁移器 GUI 也显示了同样的错误。

Failed to connect to the the source server 'cpanel' (remote-host-ip) at 'remote-host-ip' by SSH as 'remote-host-user': Incompatible ssh peer (no acceptable kex algorithm)

我的 sshd_config 设置如下,

MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-sha1
KexAlgorithms diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr

并且可以使用私钥通过正常的 SSH 命令完全正常地连接到 Cpanel 服务器,所以我不知道为什么在迁移器上会发生这种情况!

编辑:只是想让你知道,我也没有对 cPanel 服务器的控制权,因为它与通用托管服务提供商在一起 - 但正如所说,从 Plesk 服务器进行 SSH 可以正常工作。

答案1

在 sshd_config 中设置以下内容:

Ciphers [email protected],[email protected],aes256-ctr,aes128-ctr
MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-sha1
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1

或者仅对它们进行评论,迁移就应该有效。

相关内容