{"id":8677,"date":"2020-09-22T17:29:16","date_gmt":"2020-09-22T09:29:16","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8677"},"modified":"2020-09-22T17:29:16","modified_gmt":"2020-09-22T09:29:16","slug":"ntp-keygen","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ntp-keygen","title":{"rendered":"ntp-keygen\u547d\u4ee4 – \u751f\u6210NTP\u4e3b\u673a\u5bc6\u94a5"},"content":{"rendered":"\n
ntp-keygen\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u751f\u6210NTP\u4e3b\u673a\u5bc6\u94a5\uff08\u516c\u94a5\u548c\u79c1\u94a5\uff09\u3002<\/p>\n\n\n\n
\u516c\u94a5\u548c\u79c1\u6709\u5bc6\u94a5\u662f\u4e00\u5bf9\uff0c\u5982\u679c\u7528\u516c\u5f00\u5bc6\u94a5\u5bf9\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\uff0c\u53ea\u6709\u7528\u5bf9\u5e94\u7684\u79c1\u6709\u5bc6\u94a5\u624d\u80fd\u89e3\u5bc6\u3002\u5982\u679c\u7528\u79c1\u6709\u5bc6\u94a5\u5bf9\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\uff0c\u53ea\u6709\u7528\u5bf9\u5e94\u7684\u516c\u5f00\u5bc6\u94a5\u624d\u80fd\u89e3\u5bc6\u3002\u56e0\u4e3a\u52a0\u5bc6\u548c\u89e3\u5bc6\u4f7f\u7528\u7684\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u5bc6\u94a5\uff0c\u6240\u4ee5\u8fd9\u79cd\u52a0\u5bc6\u53eb\u4f5c\u975e\u5bf9\u79f0\u52a0\u5bc6\u3002<\/p>\n\n\n\n
\u5e38\u7528\u7684\u975e\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\u6709\uff1aElGamal\u3001RSA\u3001DH\u7b49\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ntp-keygen [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u52a0\u5bc6\u751f\u6210\u4e00\u4e2a\u5305\u542b\u6709\u5bc6\u7801\u548cDES-CBC\u7b97\u6cd5\u7684\u79c1\u6709\u6570\u636e\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u751f\u6210RSA\u7c7b\u578b\u7684NTP\u4e3b\u673a\u5bc6\u94a5\uff1a<\/p>\n\n\n\n \u751f\u6210\u53d7\u4fe1\u4efb\u7684\u8bc1\u4e66\uff1a<\/p>\n\n\n\n ntp-keygen\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u751f\u6210NTP\u4e3b\u673a\u5bc6\u94a5\uff08\u516c\u94a5\u548c\u79c1\u94a5\uff09\u3002 \u516c\u94a5\u548c\u79c1\u6709\u5bc6\u94a5\u662f\u4e00\u5bf9\uff0c\u5982\u679c\u7528\u516c\u5f00\u5bc6\u94a5\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8677"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8677"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8677\/revisions"}],"predecessor-version":[{"id":8699,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8677\/revisions\/8699"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-M<\/td> \u751f\u6210MD5\u5bc6\u94a5<\/td><\/tr> -H<\/td> \u751f\u6210RSA\u4e3b\u673a\u5bc6\u94a5<\/td><\/tr> -S<\u7b7e\u540d\u5bc6\u94a5><\/td> \u751f\u6210\u6307\u5b9a\u7c7b\u578b\u7684\u7b7e\u540d\u5bc6\u94a5\uff0c\u7c7b\u578b\u53ef\u4ee5\u662fRSA\u6216DSA<\/td><\/tr> -i<\u53d1\u884c\u4eba\u540d\u79f0><\/td> \u8bbe\u7f6e\u53d1\u884c\u4eba\u540d\u79f0<\/td><\/tr> -s<\u4e3b\u9898\u540d\u79f0><\/td> \u8bbe\u7f6e\u4e3b\u9898\u540d\u79f0<\/td><\/tr> -P<\/td> \u751f\u6210\u8ba1\u7b97\u673a\u79c1\u6709\u8bc1\u4e66<\/td><\/tr> -p<\u5bc6\u7801><\/td> \u52a0\u5bc6\u751f\u6210\u4e00\u4e2a\u5305\u542b\u6709\u5bc6\u7801\u548cDES-CBC\u7b97\u6cd5\u7684\u79c1\u6709\u6570\u636e\u6587\u4ef6<\/td><\/tr> -q<\u5bc6\u7801><\/td> \u4e3a\u8bfb\u53d6\u6587\u4ef6\u7684\u5bc6\u7801\u8bbe\u7f6e\u5bc6\u7801<\/td><\/tr> -m<\u6a21\u5757\u5c3a\u5bf8><\/td> \u8bbe\u7f6e\u521d\u671f\u6a21\u5757\u5c3a\u5bf8\uff08256~2048\u4f4d\uff09\u3002\u9ed8\u8ba4\u5927\u5c0f\u4e3a512<\/td><\/tr> -e<\/td> \u5199\u5165\u8eab\u4efd\u5bc6\u94a5<\/td><\/tr> -T<\/td> \u751f\u6210\u4e00\u4e2a\u53d7\u4fe1\u4efb\u7684\u8bc1\u4e66<\/td><\/tr> -d<\/td> \u542f\u7528\u8c03\u8bd5<\/td><\/tr> -G<\/td> \u4e3aGQ\u8bc6\u522b\u65b9\u6848\u751f\u6210\u53c2\u6570\u548c\u5bc6\u94a5\uff0c\u6765\u6dd8\u6c70\u4efb\u4f55\u53ef\u80fd\u5b58\u5728\u7684<\/td><\/tr> -g<\/td> \u4f7f\u7528\u73b0\u6709GQ\u53c2\u6570\u4e3aGQ\u8bc6\u522b\u65b9\u6848\u751f\u6210\u5bc6\u94a5\u3002\u5982\u679cGQ\u53c2\u6570\u8fd8\u4e0d\u5b58\u5728\uff0c\u5148\u521b\u5efa\u5b83\u4eec<\/td><\/tr> -I<\/td> \u751f\u6210\u7528\u4e8eIFF\u8bc6\u522b\u65b9\u6848\u7684\u53c2\u6570\uff0c\u6765\u6dd8\u6c70\u4efb\u4f55\u53ef\u80fd\u5b58\u5728\u7684<\/td><\/tr> -V<\u6570\u5b57><\/td> \u4e3aMV\u8bc6\u522b\u65b9\u6848\u751f\u6210\u53c2\u6570\u548c\u5bc6\u94a5<\/td><\/tr> -c<\u65b9\u6848><\/td> \u9009\u62e9\u8bc1\u4e66\u4fe1\u606f\u6458\u8981\/\u7b7e\u540d\u52a0\u5bc6\u65b9\u6848\uff0c\u53ef\u4ee5\u662fRSA-MD2\u3001RSA-MD5\u3001RSA-SHA\u3001RSA-SHA1\u3001RSA-MDC2\u3001RSA-RIPEMD160\u3001RSA-SHA\u6216RSA-SHA1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool.com~]# ntp-keygen -p linuxcool<\/pre>\n\n\n\n
[root@linuxcool.com~]# ntp-keygen -S RSA<\/pre>\n\n\n\n
[root@linuxcool.com~]# ntp-keygen -T<\/pre>\n","protected":false},"excerpt":{"rendered":"