由于我们将Mac从10.10更新到10.11,因此tomcat无法再连接并显示错误消息
[SSH] Exception:Algorithm negotiation fail
这个答案表明我们必须再次启用diffie-hellman-group1-sha1:https ://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-ssh-in-jenkins
我试过了
sudo vi /private/etc/ssh/sshd_config
并添加了一行,因为没有以“ Ciphers”开头的行
Ciphers [email protected],[email protected],[email protected],aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,diffie-hellman-group1-sha1
但是在重命名守护程序之后
sudo launchctl stop com.openssh.sshd; sudo launchctl start com.openssh.sshd;
我根本无法连接
这个答案表明我们必须再次启用diffie-hellman-group1-sha1:https ://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-ssh-in-jenkins
diffie-hellman-group1-sha1
不是密码,而是密钥交换算法。您需要允许它,例如:
KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
该行Ciphers [...] diffie-hellman-group1-sha1
无效,它阻止您的服务器启动。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句