{"id":70025,"date":"2026-02-01T13:25:11","date_gmt":"2026-02-01T05:25:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/70025.html"},"modified":"2026-02-01T13:25:11","modified_gmt":"2026-02-01T05:25:11","slug":"ubuntu-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e5%85%a8%e5%8a%a0%e5%9b%ba%ef%bc%9a%e9%85%8d%e7%bd%ae-ssh-%e5%af%86%e9%92%a5%e7%99%bb%e5%bd%95%e5%b9%b6%e7%a6%81%e6%ad%a2%e5%af%86%e7%a0%81%e7%88%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/70025.html","title":{"rendered":"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834"},"content":{"rendered":"<h2>\u670d\u52a1\u5668\u906d\u53d7\u5185\u7f51SSH\u66b4\u529b\u7834\u89e3<\/h2>\n<hr \/>\n<h2>\u3010\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa&#xff1a;\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834<\/h2>\n<h3>\u80cc\u666f<\/h3>\n<p>\u6700\u8fd1\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7&#xff08;\/var\/log\/auth.log&#xff09;&#xff0c;\u53d1\u73b0\u5927\u91cf Invalid user \u548c Failed password \u7684\u8bb0\u5f55\u3002\u8fd9\u8bf4\u660e\u670d\u52a1\u5668\u6b63\u5728\u906d\u53d7 SSH \u66b4\u529b\u7834\u89e3\u653b\u51fb\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201052510-697ee3b66abc6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e3a\u4e86\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6700\u7a33\u59a5\u7684\u65b9\u6848\u662f&#xff1a;\u542f\u7528 SSH \u5bc6\u94a5\u767b\u5f55&#xff0c;\u5e76\u5b8c\u5168\u7981\u7528\u5bc6\u7801\u767b\u5f55\u3002\u8fd9\u6837\u653b\u51fb\u8005\u5c31\u7b97\u8bd5\u4e00\u4e07\u5e74\u5bc6\u7801\u4e5f\u6ca1\u7528&#xff0c;\u56e0\u4e3a\u670d\u52a1\u5668\u6839\u672c\u4e0d\u63a5\u53d7\u5bc6\u7801\u9a8c\u8bc1\u3002<\/p>\n<hr \/>\n<h3>\u6838\u5fc3\u539f\u7406<\/h3>\n<ul>\n<li>\u516c\u94a5 (Public Key)&#xff1a;\u76f8\u5f53\u4e8e\u201c\u9501\u5934\u201d&#xff0c;\u653e\u5728\u670d\u52a1\u5668\u4e0a (~\/.ssh\/authorized_keys)\u3002<\/li>\n<li>\u79c1\u94a5 (Private Key)&#xff1a;\u76f8\u5f53\u4e8e\u201c\u94a5\u5319\u201d&#xff0c;\u5fc5\u987b\u4e25\u683c\u4fdd\u5b58\u5728\u4f60\u7684\u5ba2\u6237\u7aef\u7535\u8111\u91cc&#xff08;Windows\/Mac&#xff09;&#xff0c;\u7edd\u5bf9\u4e0d\u80fd\u6cc4\u9732\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u7b2c\u4e00\u6b65&#xff1a;\u5728\u5ba2\u6237\u7aef\u751f\u6210\u5bc6\u94a5<\/h3>\n<p>\u65e0\u8bba\u4f60\u662f Windows \u8fd8\u662f Mac&#xff0c;\u6b65\u9aa4\u57fa\u672c\u4e00\u81f4\u3002<\/p>\n<li>\u6253\u5f00\u7ec8\u7aef&#xff08;Windows \u7528 PowerShell\/CMD&#xff0c;Mac \u7528 Terminal&#xff09;\u3002<\/li>\n<li>\u8f93\u5165\u751f\u6210\u547d\u4ee4&#xff1a;ssh-keygen -t rsa -b <span class=\"token number\">4096<\/span>\n<\/li>\n<li>\u4e00\u8def\u56de\u8f66\u5373\u53ef\u3002<\/li>\n<ul>\n<li>\n<p>\u5982\u679c\u63d0\u793a\u8bbe\u7f6e passphrase&#xff08;\u5bc6\u94a5\u5bc6\u7801&#xff09;&#xff0c;\u4e3a\u4e86\u5b9e\u73b0\u514d\u5bc6\u767b\u5f55&#xff0c;\u5efa\u8bae\u76f4\u63a5\u7559\u7a7a\u56de\u8f66\u3002<br \/>\n\u7ed3\u679c&#xff1a;\u4f60\u7684\u5bc6\u94a5\u4f1a\u751f\u6210\u5728\u7528\u6237\u76ee\u5f55\u7684 .ssh \u6587\u4ef6\u5939\u4e0b&#xff1a;<\/p>\n<\/li>\n<li>\n<p>id_rsa&#xff1a;\u79c1\u94a5&#xff08;\u673a\u5bc6&#xff01;\u5343\u4e07\u522b\u53d1\u7ed9\u522b\u4eba&#xff0c;\u4e5f\u522b\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff09;<\/p>\n<\/li>\n<li>\n<p>id_rsa.pub&#xff1a;\u516c\u94a5&#xff08;\u8fd9\u4e2a\u662f\u6211\u4eec\u8981\u7528\u5230\u670d\u52a1\u5668\u4e0a\u7684&#xff09;<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u7b2c\u4e8c\u6b65&#xff1a;\u5c06\u516c\u94a5\u4e0a\u4f20\u5230\u670d\u52a1\u5668<\/h3>\n<h4>\u65b9\u6cd5 A&#xff1a;Windows \u7528\u6237&#xff08;\u624b\u52a8\u6dfb\u52a0&#xff09;<\/h4>\n<p>Windows \u9ed8\u8ba4\u6ca1\u6709\u4e0a\u4f20\u5de5\u5177&#xff0c;\u5efa\u8bae\u624b\u52a8\u64cd\u4f5c&#xff0c;\u786e\u4fdd\u4e0d\u51fa\u9519\u3002<\/p>\n<p><span class=\"token comment\"># 1. \u521b\u5efa\u76ee\u5f55&#xff08;\u5982\u679c\u4e0d\u5b58\u5728&#xff09;<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p ~\/.ssh<\/p>\n<p><span class=\"token comment\"># 2. \u7f16\u8f91\u8ba4\u8bc1\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">nano<\/span> ~\/.ssh\/authorized_keys<\/p>\n<h4>\u65b9\u6cd5 B&#xff1a;Mac \/ Linux \u7528\u6237&#xff08;\u547d\u4ee4\u4e00\u952e\u4e0a\u4f20&#xff09;<\/h4>\n<p>\u5728 Mac \u7ec8\u7aef\u91cc\u76f4\u63a5\u8fd0\u884c&#xff1a;<\/p>\n<p>ssh-copy-id \u7528\u6237\u540d&#064;\u670d\u52a1\u5668IP<\/p>\n<p>\u8f93\u5165\u4e00\u6b21\u670d\u52a1\u5668\u5bc6\u7801&#xff0c;\u516c\u94a5\u5c31\u81ea\u52a8\u90e8\u7f72\u597d\u4e86\u3002<\/p>\n<hr \/>\n<h3>\u7b2c\u4e09\u6b65&#xff1a;\u6d4b\u8bd5\u5bc6\u94a5\u767b\u5f55<\/h3>\n<p>\u26a0\ufe0f \u9ad8\u80fd\u9884\u8b66&#xff1a;\u5728\u8fd9\u4e00\u6b65\u6d4b\u8bd5\u6210\u529f\u524d&#xff0c;\u5343\u4e07\u4e0d\u8981\u5173\u95ed\u4f60\u5f53\u524d\u7684 SSH \u7a97\u53e3&#xff01;<\/p>\n<li>\u65b0\u5f00\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u3002<\/li>\n<li>\u8f93\u5165\u767b\u5f55\u547d\u4ee4&#xff1a;ssh \u7528\u6237\u540d&#064;\u670d\u52a1\u5668IP<\/li>\n<li>\u89c2\u5bdf\u7ed3\u679c&#xff1a;<\/li>\n<ul>\n<li>\u5982\u679c\u76f4\u63a5\u8fdb\u5165\u7cfb\u7edf&#xff0c;\u6216\u8005\u4e0d\u518d\u63d0\u793a\u8f93\u5165 password&#xff0c;\u8bf4\u660e\u914d\u7f6e\u6210\u529f&#xff01;&#x1f389;<\/li>\n<li>\u5982\u679c\u4f9d\u7136\u63d0\u793a\u8f93\u5165\u5bc6\u7801&#xff0c;\u8bf7\u68c0\u67e5\u7b2c\u4e8c\u6b65\u7684\u6743\u9650\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u7b2c\u56db\u6b65&#xff1a;\u5f7b\u5e95\u7981\u6b62\u5bc6\u7801\u767b\u5f55&#xff08;\u5173\u95e8\u6253\u72d7&#xff09;<\/h3>\n<p>\u786e\u8ba4\u5bc6\u94a5\u53ef\u4ee5\u7528\u4e4b\u540e&#xff0c;\u5c31\u53ef\u4ee5\u628a\u5bc6\u7801\u767b\u5f55\u8fd9\u4e2a\u201c\u6f0f\u6d1e\u767e\u51fa\u201d\u7684\u5927\u95e8\u710a\u6b7b\u4e86\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/ssh\/sshd_config<\/p>\n<p>1.\u627e\u5230&#xff08;\u6216\u6dfb\u52a0&#xff09;\u4ee5\u4e0b\u914d\u7f6e\u9879&#xff0c;\u5e76\u4fee\u6539\u4e3a&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u7981\u7528\u5bc6\u7801\u9a8c\u8bc1 (\u6700\u5173\u952e\u7684\u4e00\u6b65)<\/span><br \/>\nPasswordAuthentication no<\/p>\n<p><span class=\"token comment\"># \u542f\u7528\u516c\u94a5\u9a8c\u8bc1 (\u9ed8\u8ba4\u901a\u5e38\u662f yes&#xff0c;\u786e\u8ba4\u4e00\u4e0b)<\/span><br \/>\nPubkeyAuthentication <span class=\"token function\">yes<\/span><\/p>\n<p><span class=\"token comment\"># \u7981\u7528\u8d28\u8be2\u54cd\u5e94 (\u53ef\u9009&#xff0c;\u5efa\u8bae\u5173\u95ed)<\/span><br \/>\nChallengeResponseAuthentication no<\/p>\n<p>Ubuntu \u7279\u522b\u6ce8\u610f&#xff1a;\u5982\u679c\u4f60\u5728\u6587\u4ef6\u4e2d\u770b\u5230 Include \/etc\/ssh\/sshd_config.d\/*.conf \u8fd9\u4e00\u884c&#xff0c;\u8bf7\u786e\u4fdd\u8be5\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u6ca1\u6709\u8986\u76d6\u4f60\u7684\u8bbe\u7f6e\u3002\u901a\u5e38\u76f4\u63a5\u6539\u4e3b\u6587\u4ef6\u8fd9\u5c31\u591f\u4e86&#xff0c;\u4f46\u5982\u679c\u91cd\u542f\u540e\u4e0d\u751f\u6548&#xff0c;\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u90a3\u4e2a\u76ee\u5f55\u3002<\/p>\n<p>2.\u4fdd\u5b58\u5e76\u9000\u51fa (Ctrl&#043;O, Enter, Ctrl&#043;X)\u3002<\/p>\n<p><span class=\"token comment\">#\u91cd\u542f SSH \u670d\u52a1\u8ba9\u914d\u7f6e\u751f\u6548&#xff1a;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl restart <span class=\"token function\">ssh<\/span><\/p>\n<hr \/>\n<h3>\u8fdb\u9636\u6280\u5de7&#xff1a;\u591a\u8bbe\u5907\u7ba1\u7406\u4e0e\u522b\u540d\u914d\u7f6e<\/h3>\n<h4>1. \u5982\u4f55\u6dfb\u52a0\u65b0\u8bbe\u5907&#xff08;\u5982 iPad \u6216 \u53e6\u4e00\u53f0\u7535\u8111&#xff09;&#xff1f;<\/h4>\n<p>\u65e2\u7136\u5bc6\u7801\u767b\u5f55\u5173\u4e86&#xff0c;\u65b0\u8bbe\u5907\u600e\u4e48\u8fde&#xff1f;<\/p>\n<ul>\n<li>\u903b\u8f91&#xff1a;\u7528\u5df2\u7ecf\u6709\u6743\u9650\u7684\u8001\u8bbe\u5907&#xff0c;\u5e2e\u65b0\u8bbe\u5907\u201c\u5f00\u95e8\u201d\u3002<\/li>\n<li>\u64cd\u4f5c&#xff1a;\n<li>\u5728\u65b0\u8bbe\u5907\u751f\u6210\u5bc6\u94a5 (ssh-keygen)\u3002<\/li>\n<li>\u628a\u65b0\u8bbe\u5907\u7684\u516c\u94a5 (id_rsa.pub) \u53d1\u9001\u7ed9\u8001\u8bbe\u5907\u3002<\/li>\n<li>\u5728\u8001\u8bbe\u5907\u4e0a&#xff0c;\u628a\u8fd9\u884c\u516c\u94a5\u8ffd\u52a0\u7c98\u8d34\u5230\u670d\u52a1\u5668\u7684 ~\/.ssh\/authorized_keys \u6587\u4ef6\u4e2d&#xff08;\u53e6\u8d77\u4e00\u884c&#xff09;\u3002<\/li>\n<li>\u6b64\u65f6\u65b0\u8bbe\u5907\u4e5f\u62e5\u6709\u4e86\u8bbf\u95ee\u6743\u9650\u3002<\/li>\n<\/li>\n<\/ul>\n<h4>2. \u914d\u7f6e SSH Alias&#xff08;\u5077\u61d2\u795e\u5668&#xff09;<\/h4>\n<p>\u4e0d\u60f3\u6bcf\u6b21\u90fd\u8f93 IP \u5730\u5740&#xff1f;\u914d\u7f6e\u4e00\u4e0b\u5ba2\u6237\u7aef\u7684 SSH Config\u3002<br \/>\n\u5728\u5ba2\u6237\u7aef&#xff08;Windows\/Mac&#xff09;\u7684 ~\/.ssh\/config \u6587\u4ef6\u4e2d\u5199\u5165&#xff1a;<\/p>\n<p>Host mylab                  # \u4f60\u8d77\u7684\u522b\u540d<br \/>\n    HostName 10.109.xx.xx   # \u670d\u52a1\u5668 IP<br \/>\n    User bupt_student       # \u7528\u6237\u540d<br \/>\n    IdentityFile ~\/.ssh\/id_rsa<\/p>\n<p>\u4ee5\u540e\u53ea\u9700\u8981\u8f93\u5165 ssh mylab \u5373\u53ef\u79d2\u8fde\u670d\u52a1\u5668&#xff0c;VSCode \u7684 Remote SSH \u4e5f\u4f1a\u81ea\u52a8\u8bc6\u522b\u8fd9\u4e2a\u522b\u540d\u3002<\/p>\n<hr \/>\n<h3>\u9644&#xff1a;\u7d27\u6025\u8865\u6551\u63aa\u65bd<\/h3>\n<p>\u4e07\u4e00\u914d\u7f6e\u5931\u8bef&#xff0c;\u6240\u6709\u8bbe\u5907\u90fd\u8fde\u4e0d\u4e0a\u4e86\u600e\u4e48\u529e&#xff1f;<\/p>\n<li>\u7269\u7406\u63a5\u89e6&#xff1a;\u5982\u679c\u670d\u52a1\u5668\u5728\u8eab\u8fb9&#xff0c;\u76f4\u63a5\u63a5\u663e\u793a\u5668\u548c\u952e\u76d8&#xff0c;\u672c\u5730\u767b\u5f55\u4e0d\u53d7 SSH \u914d\u7f6e\u9650\u5236\u3002<\/li>\n<li>\u4e91\u63a7\u5236\u53f0&#xff1a;\u5982\u679c\u662f\u963f\u91cc\u4e91\/\u817e\u8baf\u4e91&#xff0c;\u4f7f\u7528\u7f51\u9875\u7248\u7684 VNC \/ \u8fdc\u7a0b\u8fde\u63a5 \u529f\u80fd&#xff0c;\u8fd9\u76f8\u5f53\u4e8e\u7269\u7406\u8fde\u63a5&#xff0c;\u53ef\u4ee5\u7528\u5bc6\u7801\u767b\u5f55\u8fdb\u53bb\u4fee\u590d\u914d\u7f6e\u3002<\/li>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u5668\u906d\u53d7\u5185\u7f51SSH\u66b4\u529b\u7834\u89e3\u3010\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa&#xff1a;\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834<br \/>\n\u80cc\u666f<br \/>\n\u6700\u8fd1\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7&#xff08;\/var\/log\/auth.log&#xff09;&#xff0c;\u53d1\u73b0\u5927\u91cf Invalid user \u548c Failed password \u7684\u8bb0\u5f55\u3002\u8fd9\u8bf4\u660e\u670d\u52a1\u5668\u6b63\u5728\u906d\u53d7 SSH \u66b4\u529b\u7834\u89e3\u653b\u51fb\u3002\u4e3a\u4e86\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6700\u7a33\u59a5\u7684\u65b9\u6848\u662f&#xff1a;\u542f\u7528 SSH \u5bc6\u94a5\u767b\u5f55&#xff0c;\u5e76\u5b8c\u5168\u7981\u7528\u5bc6\u7801\u767b\u5f55\u3002\u8fd9<\/p>\n","protected":false},"author":2,"featured_media":70024,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[103,61,43],"topic":[],"class_list":["post-70025","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ubuntu","tag-61","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/70025.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u670d\u52a1\u5668\u906d\u53d7\u5185\u7f51SSH\u66b4\u529b\u7834\u89e3\u3010\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa&#xff1a;\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 \u80cc\u666f \u6700\u8fd1\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7&#xff08;\/var\/log\/auth.log&#xff09;&#xff0c;\u53d1\u73b0\u5927\u91cf Invalid user \u548c Failed password \u7684\u8bb0\u5f55\u3002\u8fd9\u8bf4\u660e\u670d\u52a1\u5668\u6b63\u5728\u906d\u53d7 SSH \u66b4\u529b\u7834\u89e3\u653b\u51fb\u3002\u4e3a\u4e86\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6700\u7a33\u59a5\u7684\u65b9\u6848\u662f&#xff1a;\u542f\u7528 SSH \u5bc6\u94a5\u767b\u5f55&#xff0c;\u5e76\u5b8c\u5168\u7981\u7528\u5bc6\u7801\u767b\u5f55\u3002\u8fd9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/70025.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-01T05:25:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201052510-697ee3b66abc6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/70025.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/70025.html\",\"name\":\"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-01T05:25:11+00:00\",\"dateModified\":\"2026-02-01T05:25:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/70025.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/70025.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/70025.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/70025.html","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u670d\u52a1\u5668\u906d\u53d7\u5185\u7f51SSH\u66b4\u529b\u7834\u89e3\u3010\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa&#xff1a;\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 \u80cc\u666f \u6700\u8fd1\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7&#xff08;\/var\/log\/auth.log&#xff09;&#xff0c;\u53d1\u73b0\u5927\u91cf Invalid user \u548c Failed password \u7684\u8bb0\u5f55\u3002\u8fd9\u8bf4\u660e\u670d\u52a1\u5668\u6b63\u5728\u906d\u53d7 SSH \u66b4\u529b\u7834\u89e3\u653b\u51fb\u3002\u4e3a\u4e86\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6700\u7a33\u59a5\u7684\u65b9\u6848\u662f&#xff1a;\u542f\u7528 SSH \u5bc6\u94a5\u767b\u5f55&#xff0c;\u5e76\u5b8c\u5168\u7981\u7528\u5bc6\u7801\u767b\u5f55\u3002\u8fd9","og_url":"https:\/\/www.wsisp.com\/helps\/70025.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-01T05:25:11+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201052510-697ee3b66abc6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/70025.html","url":"https:\/\/www.wsisp.com\/helps\/70025.html","name":"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-01T05:25:11+00:00","dateModified":"2026-02-01T05:25:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/70025.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/70025.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/70025.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ubuntu \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\uff1a\u914d\u7f6e SSH \u5bc6\u94a5\u767b\u5f55\u5e76\u7981\u6b62\u5bc6\u7801\u7206\u7834"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/70025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=70025"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/70025\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/70024"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=70025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=70025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=70025"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=70025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}