Unable to negotiate with xxx: no matching MAC found

Unable to negotiate with xxx: no matching MAC found,第1张

在CentOS7上在用ansible部署OpenStack AIO环境时,遇到以下报错:

fatal: [aio1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Unable to negotiate with 17229236100 port 22: no matching MAC found Their offer: hmac-sha2-256,hmac-sha2-512\r\n", "unreachable": true}

尝试在该服务器上SSH 127001,报错如下:
1Unable to negotiate with 127001 port 22: no matching MAC found Their offer: hmac-sha2-256,hmac-sha2-512

但在我的macbook上,去SSH这个服务器是正常的。
于是通过ssh -vvv 看了下 debug信息,发现macbook上有部分信息与该服务器上执行ssh -vvv是不一样的:

macbook ssh服务器:
debug2: MACs ctos: hmac-sha2-256,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256,hmac-sha2-512

服务器ssh本地:
debug2: MACs ctos: hmac-sha1
debug2: MACs stoc: hmac-sha1

于是查看服务器上的ssh配置,在/etc/ssh/ssh_config上发现:
MACs hmac-sha1

没有hmac-sha2-256等信息,将这一行修改为:
MACs hmac-sha1, hmac-sha2-256, hmac-sha2-512

问题解决。

您好,phpssh2卡死是一种常见的问题,它可能是由于您的服务器环境出现了问题导致的,因此您需要通过检查您的服务器环境来解决这个问题。您可以检查您的php版本,检查您的ssh2扩展是否正确安装,检查您的服务器是否正确配置,以及检查您的服务器是否有其他的程序正在运行,以及您的服务器是否有其他的程序正在占用您的资源。如果您检查了所有这些,但仍然无法解决phpssh2卡死的问题,您可以尝试重新安装phpssh2扩展,或者您可以尝试更新您的php版本。希望以上信息能够帮助您解决phpssh2卡死的问题。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/10830489.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-11
下一篇2023-05-11

发表评论

登录后才能评论

评论列表(0条)

    保存