【发布时间】:2018-07-16 12:46:32
【问题描述】:
我想在我的 OpenSSH 上禁用“diffie-hellman-group1-sha1”和“diffie-hellman-group-exchange-sha1”密钥交换算法。 我编辑了 /etc/ssh/sshd_config 并添加了这一行: Kex算法 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256
之后我通过命令重新启动了 SSH -> 'service sshd restart'
现在,当我运行命令“ssh -Q kex”时,输出仍然是: diffie-hellman-group1-sha1 diffie-hellman-group14-sha1 diffie-hellman-group14-sha256 diffie-hellman-group16-sha512 diffie-hellman-group18-sha512 diffie-hellman-group-exchange-sha1 diffie-hellman-group-exchange-sha256 ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 曲线25519-sha256 curve25519-sha256@libssh.org gss-gex-sha1- gss-group1-sha1- gss-group14-sha1-
为什么不做任何改变?我是不是做错了什么?
【问题讨论】:
-
Stackoverflow 用于软件开发方面的帮助。您应该考虑在Unix & Linux、Server Fault 或Super User 上提问。
标签: openssh diffie-hellman sshd