{"id":4599,"date":"2021-08-12T18:58:52","date_gmt":"2021-08-12T10:58:52","guid":{"rendered":"http:\/\/blog.ywdevops.cn\/?p=4599"},"modified":"2021-08-12T18:59:02","modified_gmt":"2021-08-12T10:59:02","slug":"ssh-2","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2021\/08\/12\/ssh-2\/","title":{"rendered":"ssh\u8fdc\u7a0b\u767b\u5f55\u5176\u4ed6\u673a\u5668\u6162"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u901a\u8fc7ssh\u8fdc\u7a0b\u5176\u4ed6\u673a\u5668\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u51fa\u73b0\u9700\u8981\u7b49\u5f85\u5f88\u4e45\u624d\u4f1a\u5f39\u51fa\u5bc6\u7801\u8ba4\u8bc1\u754c\u9762\uff0c\u539f\u56e0\u662f\uff1aOpenSSH\u670d\u52a1\u5668\u6709\u4e00\u4e2aDNS\u67e5\u627e\u9009\u9879UseDNS\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u6253\u5f00\u7684\u3002 UseDNS \u9009\u9879\u6253\u5f00\u72b6\u6001\u4e0b\uff0c\u5f53\u901a\u8fc7\u7ec8\u7aef\u767b\u5f55SSH\u670d\u52a1\u5668\u65f6\uff0c\u670d\u52a1\u5668\u7aef\u5148\u6839\u636e\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\u8fdb\u884cDNS PTR\u53cd\u5411\u67e5\u8be2\u51fa\u5ba2\u6237\u7aef\u7684\u4e3b\u673a\u540d\uff0c\u7136\u540e\u6839\u636e\u67e5\u8be2\u51fa\u7684\u5ba2\u6237\u7aef\u4e3b\u673a\u540d\u8fdb\u884cDNS\u6b63\u5411A\u8bb0\u5f55\u67e5\u8be2\uff0c\u9a8c\u8bc1\u4e0e\u5176\u539f\u59cbIP\u5730\u5740\u662f\u5426\u4e00\u81f4\uff0c\u8fd9\u662f\u9632\u6b62\u5ba2\u6237\u7aef\u6b3a\u9a97\u7684\u4e00\u79cd\u63aa\u65bd\uff0c\u4f46\u4e00\u822c\u6211\u4eec\u7684\u662f\u52a8\u6001IP\u4e0d\u4f1a\u6709PTR\u8bb0\u5f55\uff0c\u6253\u5f00\u8fd9\u4e2a\u9009\u9879\u6ca1\u4ec0\u4e48\u7528\uff0c\u4e0d\u5982\u5173\u95ed\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001 \u7f16\u8f91\u914d\u7f6e\u6587\u4ef6 \/etc\/ssh\/sshd_config \uff08\u88ab\u8fde\u63a5\u7aef\uff0c\u4e5f\u5c31\u662f\u670d\u52a1\u5668\u7aef\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u627e\u5230 UseDNS\u9009\u9879\uff0c\u5982\u679c\u6ca1\u6709\u6ce8\u91ca\uff0c\u5c06\u5176\u6ce8\u91ca \uff0c\u7136\u540e\u91cd\u65b0\u6dfb\u52a0\u5185\u5bb9UseDNS no\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"207\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/08\/1.jpg\" alt=\"\" class=\"wp-image-4600\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/08\/1.jpg 569w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/08\/1-300x109.jpg 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001 \u627e\u5230 GSSAPIAuthentication\u9009\u9879(\u4e5f\u662f\u88ab\u8fde\u63a5\u7aef\uff0c\u670d\u52a1\u7aef)\uff0c\u5982\u679c\u6ca1\u6709\u6ce8\u91ca\uff0c\u5c06\u5176\u6ce8\u91ca \uff0c\u6dfb\u52a0  GSSAPIAuthentication no \uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"527\" height=\"198\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/08\/2.jpg\" alt=\"\" class=\"wp-image-4601\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/08\/2.jpg 527w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/08\/2-300x113.jpg 300w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u91cd\u542fsshd\uff0c\u6267\u884c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">systemctl restart sshd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u901a\u8fc7ssh\u8fdc\u7a0b\u5176\u4ed6\u673a\u5668\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u51fa\u73b0\u9700\u8981\u7b49\u5f85\u5f88\u4e45\u624d\u4f1a\u5f39\u51fa\u5bc6\u7801\u8ba4\u8bc1\u754c\u9762\uff0c\u539f\u56e0\u662f\uff1aOpenSSH\u670d\u52a1\u5668\u6709\u4e00\u4e2aD [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":4602,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,94],"tags":[],"class_list":["post-4599","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-problem-2"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/4599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=4599"}],"version-history":[{"count":1,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/4599\/revisions"}],"predecessor-version":[{"id":4603,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/4599\/revisions\/4603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/4602"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}