Diffie-Hellman key exchange is a popular cryptographic algorithm that allows Internet protocols to agree on a shared key and negotiate a secure connection. It is fundamental to many protocols including HTTPS, SSH, IPsec, and protocols that rely on TLS. On May 20, 2015, researchers uncovered several weaknesses in how Diffie-Hellman key exchange has been deployed:
[edit system services ssh] user@junos# set key-exchange ? Possible completions: [ Open a set of values dh-group1-sha1 The RFC 4253 mandated group1 with SHA1 hash dh-group14-sha1 The RFC 4253 mandated group14 with SHA1 hash ecdh-sha2-nistp256 The EC Diffie-Hellman on nistp256 with SHA2-256 ecdh-sha2-nistp384 The EC Diffie-Hellman on nistp384 with SHA2-384 ecdh-sha2-nistp521 The EC Diffie-Hellman on nistp521 with SHA2-512 group-exchange-sha1 The RFC 4419 group exchange with SHA1 hash group-exchange-sha2 The RFC 4419 group exchange with SHA2-256 hash
KexAlgorithms
/etc/ssh/sshd_config
$ tar -xvf LogjamPatch.tar
$ sh Update_LogjamPatch.sh
2015-05-29: Initial publication 2015-06-01: Simplified IPsec/IKE description for Junos 2015-06-12: Confirmed NSM not vulnerable 2015-06-15: Removed J-Web workaround, since J-Web is not vulnerable 2015-08-27: Clarified difference between Junos Space OpenSSH server and J2SSH client 2015-09-18: Updated statement for WXOS 2016-04-27: Provided instructions to patch Firefly Host 2017-03-05: Category restructure.