{"id":116827,"date":"2018-08-26T08:55:32","date_gmt":"2018-08-26T00:55:32","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=116827"},"modified":"2018-08-23T13:57:11","modified_gmt":"2018-08-23T05:57:11","slug":"aliyun-ssh-accont","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/aliyun-ssh-accont.html","title":{"rendered":"\u5982\u4f55\u5904\u7406\u963f\u91cc\u4e91ssh\u8fde\u63a5\u6162"},"content":{"rendered":"
\u4e00\u3001\u95ee\u9898\u63cf\u8ff0<\/strong><\/div>\n

\u516c\u53f8\u5185\u90e8\u4f7f\u7528\u7684\u6709\u963f\u91cc\u4e91\uff08\u79c1\u6709\u4e91\uff09\u5e73\u53f0\u3002\u7531\u4e8e\u5176\u865a\u62df\u673a\u6a21\u5757\u662f\u56fa\u5b9a\u6b7b\u7684\uff0c\u5185\u90e8\u81ea\u5df1\u4f7f\u7528\u4e00\u4e9b\u7248\u672c\u5728\u5176\u4e0a\u9762\u6ca1\u6709\uff0c\u540e\u90fd\u662f\u901a\u8fc7vmware\u521b\u5efa\u597d\u540e\uff0c\u518d\u901a\u8fc7\u963f\u91cc\u4e91\u4e13\u95e8\u7684\u8f6c\u6362\u5de5\u5177\u8f6c\u6362\u6210\u4ed6\u4eec\u7684\u683c\u5f0f\uff0c\u518d\u5728\u540e\u53f0\u901a\u8fc7\u547d\u4ee4\u5bfc\u5165\u7684\u3002\u80fd\u8fc7\u8fd9\u4e9b\u6a21\u5757\u5206\u53d1\u7684\u865a\u62df\u673a\u5728vmware\u4e0a\u4f7f\u7528\u6b63\u5e38\uff0c\u4f46\u5728\u963f\u91cc\u4e91\u5e73\u53f0\u4e0a\u5206\u53d1\u7684\u865a\u62df\u673a\u4f1a\u6709ssh\u8fde\u63a5\u6162\u7684\u95ee\u9898\uff08\u4e00\u822c30\u591a\u79d2\u624d\u80fd\u51fa\u73b0\u5bc6\u7801\u8ba4\u8bc1\u754c\u9762\uff0c\u540c\u4e00\u6a21\u677f\u5206\u53d1\u7684\u865a\u62df\u673a\uff0c\u4e00\u5c0f\u90e8\u5206\u6709ssh\u8fde\u63a5\u6162\u7684\u95ee\u9898\uff09\u3002<\/p>\n

\u901a\u8fc7\u67e5\u770bsshd_config\u914d\u7f6e\u6587\u4ef6\uff0c\u53d1\u73b0\u5f71\u54cdssh\u8fde\u63a5\u4e24\u9879\u5df2\u505a\u8fc7\u5904\u7406\uff1a<\/p>\n

UseDNS=no\r\nGSSAPIAuthentication no\r\n<\/pre>\n

\u800c\u4e3b\u673aOS\u91cd\u542f\u540e\uff0cssh\u8fde\u63a5\u6162\u7684\u95ee\u9898\u5c31\u6ca1\u6709\u4e86\u3002<\/p>\n

\u4e8c\u3001\u95ee\u9898\u5206\u6790<\/strong><\/div>\n
1\u3001\u6392\u67e5\u7f51\u7edc\u5f71\u54cd<\/strong><\/span><\/div>\n

\u901a\u8fc7\u963f\u91cc\u4e91\u5185\u90e8\u7684\u4e3b\u673a\u901a\u8fc7\u5185\u7f51\u8fde\u63a5\u53d1\u73b0\u540c\u6837\u6162\u3002\u901a\u8fc7ssh 127.0.0.1\u4e5f\u540c\u6837\u5f88\u6162\u3002<\/p>\n

2\u3001ssh\u8fde\u63a5\u8be6\u60c5\u5206\u6790<\/strong><\/span><\/div>\n

\u901a\u8fc7 ssh -v\u53c2\u6570\u67e5\u770b\u8be6\u7ec6\u8fde\u63a5\u8fc7\u7a0b\u3002\u53d1\u73b0\u53ea\u9664\u4e86\u8ba4\u8bc1\u7b49\u5f85\u65f6\u95f4\u8fc7\u957f\u5916\uff0c\u540e\u9762\u672a\u53d1\u73b0\u5f02\u5e38\u3002<\/p>\n

3\u3001\u67e5\u770b\u4e3b\u673a\u65e5\u5fd7<\/strong><\/span><\/div>\n

SUSE\u4e0b\u67e5\u770b\/var\/log\/messages\uff0credhat\u4e0b\u7684ssh\u8ba4\u8bc1\u65e5\u5fd7\u5728\/var\/log\/auth\u4e0b\uff0c\u53d1\u73b0\u6709\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n

2018-08-01T09:40:01.791947+08:00 www.361way.com cron[13490]: pam_unix(crond:session): session opened for user zabbix by (uid=0)\r\n2018-08-01T09:40:01.792189+08:00 www.361way.com systemd[1]: Started Login Service.\r\n2018-08-01T09:40:01.792420+08:00 www.361way.com cron[13494]: pam_unix(crond:session): session opened for user zabbix by (uid=0)\r\n2018-08-01T09:40:01.792783+08:00 www.361way.com cron[13491]: pam_unix(crond:session): session opened for user zabbix by (uid=0)\r\n2018-08-01T09:40:26.795639+08:00 www.361way.com cron[13491]: pam_systemd(crond:session): Failed to create session: Connection timed out\r\n2018-08-01T09:40:26.796028+08:00 www.361way.com dbus[961]: [system] Failed to activate service 'org.freedesktop.login1': timed out\r\n2018-08-01T09:40:26.796378+08:00 www.361way.com cron[13495]: pam_systemd(crond:session): Failed to create session: Activation of org.freedesktop.login1 timed out\r\n<\/pre>\n

\u4ece\u4e0a\u9762\u7684\u65e5\u5fd7\u53ef\u4ee5\u770b\u51fa\u4ece9:40:01\u52309:40:26\u51fa\u73b0\u5bc6\u7801\u8ba4\u8bc1\u754c\u9762\u7528\u4e8625\u79d2\uff0c\u800c\u4e9b\u65f6\u6709\u4e00\u4e2aorg.freeddesktop.login1\u5931\u8d25\u7684\u8bb0\u5f55\u3002\u8fd0\u884cinit 3\u6392\u9664\u662f\u56fe\u5f62\u5316\u684c\u9762\u7684\u5f71\u54cd\u3002\u8fd0\u884c\u540e\u518d\u8fde\u63a5\u53d1\u73b0\u8fd8\u6709\u8be5\u95ee\u9898\u3002\u653eG\u67e5\u8be2\u4e86\u4e0b\u8be5\u62a5\u9519\uff0c\u53d1\u73b0\u4e86\u95ee\u9898\u539f\u56e0\u3002<\/p>\n

\u4e09\u3001\u95ee\u9898\u89e3\u51b3<\/strong><\/div>\n

\u901a\u8fc7\u67e5\u8be2\u5230\u7684\u8d44\u6599\uff0c\u4e86\u89e3\u5230\u95ee\u9898\u539f\u56e0\u4e3a\uff1adbus\u7684\u670d\u52a1\u91cd\u542f\u540e\uff0csystemd-logind\u670d\u52a1\u6ca1\u6709\u91cd\u542f\u5bfc\u81f4\u3002\u6545\u800c\u5728\u65e5\u5fd7\u4e2d\u4f1a\u51fa\u73b0\u201c[system] Failed to activate service \u2018org.freedesktop.login1\u2018: timed out\u201d\u7684\u62a5\u9519\u3002\u89e3\u51b3\u65b9\u6cd5\u4e3a\u91cd\u542fsystemd-logind\u670d\u52a1\u3002\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

systemctl restart systemd-logind\r\nsystemctl status systemd-logind\r\n<\/pre>\n

\u518d\u8fdb\u884cssh\u8fde\u63a5\u540e\uff0c\u901f\u5ea6\u53c8\u53d8\u62103\u79d2\u5185\u54cd\u5e94\u4e86\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.361way.com\/aliyun-ssh-slow\/5771.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/www.li<\/span>nuxprobe.com\/aliyun-ssh-accont<\/span>.html \u200e<\/a>\u7f16\u8f91\uff1a\u5f20\u96c4\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u4e00\u3001\u95ee\u9898\u63cf\u8ff0 \u516c\u53f8\u5185\u90e8\u4f7f\u7528\u7684\u6709\u963f\u91cc\u4e91\uff08\u79c1\u6709\u4e91\uff09\u5e73\u53f0\u3002\u7531\u4e8e\u5176\u865a\u62df\u673a\u6a21\u5757\u662f\u56fa\u5b9a\u6b7b\u7684\uff0c\u5185\u90e8\u81ea\u5df1\u4f7f\u7528\u4e00\u4e9b\u7248\u672c\u5728\u5176\u4e0a\u9762\u6ca1 […]<\/p>\n","protected":false},"author":643,"featured_media":116828,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-116827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/116827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=116827"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/116827\/revisions"}],"predecessor-version":[{"id":116925,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/116827\/revisions\/116925"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/116828"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=116827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=116827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=116827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}