{"id":2803,"date":"2023-11-17T10:33:09","date_gmt":"2023-11-17T02:33:09","guid":{"rendered":"https:\/\/199604.com\/?p=2803"},"modified":"2023-11-17T10:33:09","modified_gmt":"2023-11-17T02:33:09","slug":"diffie-hellman-key-agreement-protocol-%e8%b5%84%e6%ba%90%e7%ae%a1%e7%90%86%e9%94%99%e8%af%af%e6%bc%8f%e6%b4%9e%ef%bc%88cve-2002-20001%ef%bc%89","status":"publish","type":"post","link":"https:\/\/199604.com\/2803","title":{"rendered":"Diffie-Hellman Key Agreement Protocol \u8d44\u6e90\u7ba1\u7406\u9519\u8bef\u6f0f\u6d1e\uff08CVE-2002-20001\uff09"},"content":{"rendered":"<h1>Diffie-Hellman Key Agreement Protocol \u8d44\u6e90\u7ba1\u7406\u9519\u8bef\u6f0f\u6d1e\uff08CVE-2002-20001\uff09<\/h1>\n<blockquote><p>\n  \u7531\u4e8e\u4f4e\u7248\u672c\u7684OpenSSH\u4f7f\u7528\u4e86\u8fc7\u65f6\u4e0d\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5\u534f\u8bae\uff0c\u901a\u5e38OpenSSH\u5728\u7248\u672c\u8fed\u4ee3\u66f4\u65b0\u65f6\u4f1a\u5f03\u7528\u8fd9\u4e9b\u4e0d\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5\u3002 \u5982\u679c\u6211\u4eec\u4ecd\u8981\u7ee7\u7eed\u4f7f\u7528\u65e7\u7248\u672c\u7684OpenSSH\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\uff0c\u8003\u8651\u5c4f\u853d\u6389\u4e0d\u5b89\u5168\u7684\u52a0\u5bc6\u7b97\u6cd5\uff0c\u4ee5\u964d\u4f4e\u5b89\u5168\u98ce\u9669.\n<\/p><\/blockquote>\n<h2>\u67e5\u770bKexalgorithms<\/h2>\n<p>\u6b64\u4e3e\u64cd\u4f5c\u662f\u786e\u8ba4\u5ba2\u6237\u7aef\u652f\u6301\u7684kexalgorithms<\/p>\n<pre><code class=\"language-shell \">[root@cntf1 ~]# ssh -Q kex\ndiffie-hellman-group1-sha1\ndiffie-hellman-group14-sha1\ndiffie-hellman-group14-sha256\ndiffie-hellman-group16-sha512\ndiffie-hellman-group18-sha512\ndiffie-hellman-group-exchange-sha1\ndiffie-hellman-group-exchange-sha256\necdh-sha2-nistp256\necdh-sha2-nistp384\necdh-sha2-nistp521\ncurve25519-sha256\ncurve25519-sha256@libssh.org\n<\/code><\/pre>\n<h2>\u67e5\u770b\u670d\u52a1\u7aef\u652f\u6301\u7684kexalgorithms<\/h2>\n<p><code>sshd -T | grep -w kexalgorithms<\/code><\/p>\n<h3>centos6.5<\/h3>\n<pre><code class=\"language-shell \">echo \"KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521\" &gt;&gt; \/etc\/ssh\/sshd_config\nservice sshd restart\n<\/code><\/pre>\n<h3>centos7<\/h3>\n<pre><code class=\"language-shell \">echo \"KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521\" &gt;&gt; \/etc\/ssh\/sshd_config\nsystemctl restart sshd\nsshd -T | grep -w kexalgorithms\n<\/code><\/pre>\n<h2>\u9a8c\u8bc1<\/h2>\n<h5>\u672a\u7981\u7528diffie-hellman\u7b97\u6cd5\u4e4b\u524d\uff0c\u53ef\u7528\u6b63\u5e38\u4f7f\u7528ssh\u8fde\u63a5\u767b\u5f55<\/h5>\n<h5>\u7981\u7528\u4e86diffie-hellman\u7b97\u6cd5\u4e4b\u540e\uff0c\u5e26\u4e0a\u88ab\u7981\u7528\u7684\u5bc6\u94a5\u7b97\u6cd5\u767b\u5f55\uff0c\u663e\u793a\u4e0d\u80fd\u6b63\u5e38\u4f7f\u7528ssh\u767b\u5f55<\/h5>\n<p><code>ssh -v -oKexAlgorithms=diffie-hellman-group1-sha1 root@192.168.111.156<\/code><\/p>\n<h5>\u4e0b\u9762\u662f\u76f4\u63a5\u6b63\u5e38ssh\u767b\u5f55\uff0c\u4e0d\u5e26\u4efb\u4f55\u52a0\u5bc6\u7b97\u6cd5\uff0c\u53d1\u73b0\u662f\u53ef\u7528\u6b63\u5e38\u4f7f\u7528ssh\u767b\u5f55<\/h5>\n<p><code>ssh -v root@192.168.111.156<\/code><\/p>\n<blockquote><p>\n  \u53c2\u8003\uff1a<code>https:\/\/www.cnblogs.com\/autopwn\/p\/16363160.html<\/code>\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Diffie-Hellman Key Agreement Protocol \u8d44\u6e90\u7ba1\u7406\u9519\u8bef\u6f0f\u6d1e\uff08CVE-2002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[443,260],"tags":[259],"class_list":["post-2803","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","tag-centos"],"_links":{"self":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/comments?post=2803"}],"version-history":[{"count":1,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2803\/revisions"}],"predecessor-version":[{"id":2804,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2803\/revisions\/2804"}],"wp:attachment":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/media?parent=2803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/categories?post=2803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/tags?post=2803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}