OSX 10.11启用ssh diffie-hellman-group1-sha1

乌策拜尔

由于我们将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;

我根本无法连接

ky

这个答案表明我们必须再次启用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] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在Debian 8.0上启用diffie-hellman-group1-sha1密钥交换?

对 diffie-hellman-group1-sha1 的扭曲支持

配置rclone以支持diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1

SSH:无法与XXX.XXX.XX.XXX协商:找不到匹配的密钥交换方法。他们提供:diffie-hellman-group1-sha1

使用“ KexAlgorithms diffie-hellman-group1-sha1”无法解决“未找到匹配的密钥交换方法”错误

我如何使用 diffie-hellman-group1-sha1 算法连接到 AWS transfer Family 的 SFTP 服务器

与sshlib连接时出现“ Kex错误:在列表中未找到算法diffie-hellman-group1-sha1-之一”

netshsd版本的openssh支持“ diffie-hellman-group-exchange-sha256”,但不支持SHA256(对于Mac)

python Diffie Hellman标准库

如何将十六进制公钥转换为ASN.1 SubjectPublicKeyInfo结构以进行Diffie-Hellman密钥交换?

Java的的Diffie Hellman的初始化ECDHKeyAgreement

EnvoyProxy、Diffie Hellman Key 和 ssl 安全

使用RSA密钥的Diffie Hellman密钥协议?

临时Diffie-Hellman需要证书吗?

certbot使用弱diffie hellman加密

python中的Diffie-Hellman加密方案

计算 Diffie Hellman 挑战 - Python 与 NodeJS

椭圆曲线Diffie Hellman公钥大小

Diffie-Hellman 对称键显示问题

SHA1 PHP加密与SHA1 Python加密

SHA1 哈希澄清

SHA1无痛(elasticsearch)

SHA1不匹配

在 IIS 中启用 MD5 或 SHA1 哈希函数

如何获取Android内部应用共享密钥SHA1以启用Google API?

在mbedtls Diffie-Hellman中使用Java的DER键

使用ECDSA x509证书的Diffie Hellman密钥交换

Tomcat 7的Diffie-Hellman公钥错误

Diffie-Hellman(至RC4)与Wincrypt来自Python