{"id":35866,"date":"2025-05-07T05:50:51","date_gmt":"2025-05-06T21:50:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35866.html"},"modified":"2025-05-07T05:50:51","modified_gmt":"2025-05-06T21:50:51","slug":"%e5%b0%86%e7%94%b5%e8%84%91%e9%85%8d%e7%bd%ae%e4%b8%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c%e9%80%9a%e8%bf%87ssh-%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5%e6%95%99%e7%a8%8b%ef%bc%88%e9%80%82%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35866.html","title":{"rendered":"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>&#x1f9d1;\u200d&#x1f4bb; \u4e00\u3001\u8bbe\u7f6e\u672c\u5730\u8d26\u6237<\/li>\n<li>&#x1f527; \u4e8c\u3001\u5b89\u88c5 &amp; \u914d\u7f6e OpenSSH<\/li>\n<li>\n<ul>\n<li>2.1 \u5378\u8f7d\u65e7\u7248\u672c&#xff08;\u5982\u679c\u4e4b\u524d\u6709\u5b89\u88c5\u8fc7&#xff09;<\/li>\n<li>2.2 \u5b89\u88c5 OpenSSH \u5ba2\u6237\u7aef\/\u670d\u52a1\u5668<\/li>\n<li>2.3 \u542f\u52a8 ssh \u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f525; \u4e09\u3001\u914d\u7f6e\u9632\u706b\u5899\u653e\u884c SSH \u7aef\u53e3&#xff08;22&#xff09;<\/li>\n<li>\n<ul>\n<li>\u65b9\u6cd5\u4e00&#xff1a;\u56fe\u5f62\u754c\u9762\u914d\u7f6e<\/li>\n<li>\u65b9\u6cd5\u4e8c&#xff1a;PowerShell \u547d\u4ee4&#xff08;\u63a8\u8350&#xff09;<\/li>\n<li>\u65b9\u6cd5\u4e09&#xff1a;\u517c\u5bb9\u65e7\u7cfb\u7edf\u547d\u4ee4<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f310; \u56db\u3001\u542f\u7528 ping&#xff08;ICMP&#xff09;\u529f\u80fd&#xff08;\u53ef\u9009\u4f46\u63a8\u8350&#xff09;<\/li>\n<li>\n<ul>\n<li>\u9a8c\u8bc1 ICMP&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f511; \u4e94\u3001\u914d\u7f6e SSH \u5bc6\u94a5\u8ba4\u8bc1&#xff08;\u53ef\u9009&#xff0c;\u4f46\u66f4\u5b89\u5168&#xff09;<\/li>\n<li>\n<ul>\n<li>5.1 \u5ba2\u6237\u7aef\u751f\u6210 SSH \u5bc6\u94a5\u5bf9<\/li>\n<li>5.2 \u670d\u52a1\u7aef\u914d\u7f6e\u516c\u94a5<\/li>\n<li>5.3 \u4fee\u6539 sshd \u914d\u7f6e\u6587\u4ef6\u4ee5\u542f\u7528\u5bc6\u94a5\u8ba4\u8bc1<\/li>\n<li>5.4 \u91cd\u542f SSH \u670d\u52a1<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f4bb; \u516d\u3001\u5ba2\u6237\u7aef\u6d4b\u8bd5 SSH \u8fde\u63a5<\/li>\n<li>\n<ul>\n<li>\u547d\u4ee4\u884c\u8fde\u63a5\u65b9\u5f0f&#xff08;\u5bc6\u7801\u767b\u5f55\u6216\u5bc6\u94a5\u767b\u5f55&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f5a5;\ufe0f \u4e03\u3001\u4f7f\u7528 VSCode Remote-SSH \u63d2\u4ef6\u8fde\u63a5<\/li>\n<li>\u2705 \u603b\u7ed3 Checklist<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>&#x1f9d1;\u200d&#x1f4bb; \u4e00\u3001\u8bbe\u7f6e\u672c\u5730\u8d26\u6237<\/h3>\n<li>\u6253\u5f00 \u8bbe\u7f6e \u2192 \u8d26\u6237 \u2192 \u60a8\u7684\u4fe1\u606f \u2192 \u70b9\u51fb \u6539\u4e3a\u4f7f\u7528\u672c\u5730\u8d26\u6237\u767b\u5f55<\/li>\n<li>\u8bbe\u7f6e\u672c\u5730\u8d26\u6237\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff0c;\u4f8b\u5982&#xff1a;MikeMengTR\n<p>\u2705 \u8fd9\u662f\u7528\u4e8e\u540e\u7eed SSH \u767b\u5f55\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff0c;\u4e0e Microsoft \u5e10\u53f7\u65e0\u5173&#xff01;<\/p>\n<\/li>\n<li>\u4e0b\u6b21\u767b\u5f55 Windows \u65f6\u4f7f\u7528\u672c\u5730\u8d26\u6237\u540d\u548c\u5bc6\u7801<\/li>\n<li>\u67e5\u770b\u5f53\u524d\u7528\u6237\u540d\u7684\u65b9\u6cd5&#xff1a;whoami  <span class=\"token comment\"># \u8fd4\u56de\u683c\u5f0f&#xff1a;\u7535\u8111\u540d\\\\\u7528\u6237\u540d<\/span>\n<p>\u5176\u4e2d \\\\ \u540e\u9762\u7684\u5373\u662f\u4f60\u7684\u672c\u5730\u7528\u6237\u540d<\/p>\n<\/li>\n<hr \/>\n<h3>&#x1f527; \u4e8c\u3001\u5b89\u88c5 &amp; \u914d\u7f6e OpenSSH<\/h3>\n<h4>2.1 \u5378\u8f7d\u65e7\u7248\u672c&#xff08;\u5982\u679c\u4e4b\u524d\u6709\u5b89\u88c5\u8fc7&#xff09;<\/h4>\n<ul>\n<li>\u5378\u8f7d\u5df2\u5b89\u88c5\u7684 OpenSSH \u5ba2\u6237\u7aef\/\u670d\u52a1\u5668<\/li>\n<li>\u5220\u9664\u76ee\u5f55&#xff1a;C:\\\\Users\\\\\u7528\u6237\u540d\\\\.ssh\n<p>\u2757 \u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5\u8fc7&#xff0c;\u53ef\u4ee5\u8df3\u8fc7\u8fd9\u6b65&#xff1b;\u5982\u679c\u4f60\u4e4b\u524d\u5c1d\u8bd5\u914d\u7f6e\u5931\u8d25&#xff0c;\u4e00\u5b9a\u8981\u5220\u9664\u8be5\u76ee\u5f55\u91cd\u65b0\u6765\u8fc7<\/p>\n<\/li>\n<\/ul>\n<h4>2.2 \u5b89\u88c5 OpenSSH \u5ba2\u6237\u7aef\/\u670d\u52a1\u5668<\/h4>\n<ul>\n<li>\u6253\u5f00 \u8bbe\u7f6e \u2192 \u5e94\u7528 \u2192 \u53ef\u9009\u529f\u80fd<\/li>\n<li>\u6dfb\u52a0\u529f\u80fd&#xff1a;OpenSSH Client \u548c OpenSSH Server<\/li>\n<\/ul>\n<h4>2.3 \u542f\u52a8 ssh \u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/h4>\n<p><span class=\"token function\">Set-Service<\/span> <span class=\"token operator\">&#8211;<\/span>Name sshd <span class=\"token operator\">&#8211;<\/span>StartupType <span class=\"token string\">&#039;Automatic&#039;<\/span>  <span class=\"token comment\"># \u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f<\/span><br \/>\n<span class=\"token function\">Start-Service<\/span> sshd                               <span class=\"token comment\"># \u542f\u52a8 sshd \u670d\u52a1<\/span><br \/>\n<span class=\"token function\">Get-Service<\/span> sshd                                 <span class=\"token comment\"># \u67e5\u770b\u72b6\u6001\u662f\u5426\u4e3a Running<\/span><\/p>\n<hr \/>\n<h3>&#x1f525; \u4e09\u3001\u914d\u7f6e\u9632\u706b\u5899\u653e\u884c SSH \u7aef\u53e3&#xff08;22&#xff09;<\/h3>\n<h4>\u65b9\u6cd5\u4e00&#xff1a;\u56fe\u5f62\u754c\u9762\u914d\u7f6e<\/h4>\n<li>\u6253\u5f00 \u63a7\u5236\u9762\u677f \u2192 \u7cfb\u7edf\u548c\u5b89\u5168 \u2192 Windows Defender \u9632\u706b\u5899 \u2192 \u9ad8\u7ea7\u8bbe\u7f6e<\/li>\n<li>\u70b9\u51fb\u3010\u5165\u7ad9\u89c4\u5219\u3011\u2192\u3010\u65b0\u5efa\u89c4\u5219\u3011<\/li>\n<li>\u9009\u62e9\u7c7b\u578b\u4e3a\u3010\u7aef\u53e3\u3011<\/li>\n<li>\u9009\u62e9\u534f\u8bae\u4e3a TCP&#xff0c;\u7279\u5b9a\u7aef\u53e3\u586b 22<\/li>\n<li>\u9009\u62e9\u3010\u5141\u8bb8\u8fde\u63a5\u3011<\/li>\n<li>\u52fe\u9009\u3010\u57df\u3011\u3010\u4e13\u7528\u3011\u3010\u516c\u7528\u3011\u5168\u90e8\u9009\u9879<\/li>\n<li>\u547d\u540d\u89c4\u5219\u4e3a SSH<\/li>\n<h4>\u65b9\u6cd5\u4e8c&#xff1a;PowerShell \u547d\u4ee4&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<p><span class=\"token function\">New-NetFirewallRule<\/span> <span class=\"token operator\">&#8211;<\/span>Name sshd <span class=\"token operator\">&#8211;<\/span>DisplayName <span class=\"token string\">&#039;OpenSSH Server (sshd)&#039;<\/span> <span class=\"token operator\">&#8211;<\/span>Enabled True <span class=\"token operator\">&#8211;<\/span>Direction Inbound <span class=\"token operator\">&#8211;<\/span>Protocol TCP <span class=\"token operator\">&#8211;<\/span>Action Allow <span class=\"token operator\">&#8211;<\/span>LocalPort 22<\/p>\n<h4>\u65b9\u6cd5\u4e09&#xff1a;\u517c\u5bb9\u65e7\u7cfb\u7edf\u547d\u4ee4<\/h4>\n<p>netsh advfirewall firewall add rule name&#061;<span class=\"token string\">&#034;Allow SSH In&#034;<\/span> ^<br \/>\n  protocol&#061;TCP <span class=\"token function\">dir<\/span>&#061;in localport&#061;22 action&#061;allow<\/p>\n<hr \/>\n<h3>&#x1f310; \u56db\u3001\u542f\u7528 ping&#xff08;ICMP&#xff09;\u529f\u80fd&#xff08;\u53ef\u9009\u4f46\u63a8\u8350&#xff09;<\/h3>\n<p>\u82e5\u5ba2\u6237\u7aef\u65e0\u6cd5 ping \u901a\u670d\u52a1\u7aef IP&#xff0c;\u53ef\u80fd\u662f\u56e0\u4e3a\u670d\u52a1\u7aef\u9632\u706b\u5899\u5c4f\u853d\u4e86 ICMP\u3002\u5728\u670d\u52a1\u7aef\u4e2d\u7528\u7ba1\u7406\u5458\u6743\u9650\u7684 PowerShell&#xff0f;CMD \u4e00\u6b21\u6027\u6dfb\u52a0\u89c4\u5219&#xff1a;<\/p>\n<p>netsh advfirewall firewall add rule name&#061;<span class=\"token string\">&#034;Allow ICMPv4 In&#034;<\/span> ^<br \/>\n  protocol&#061;icmpv4:8<span class=\"token punctuation\">,<\/span>any <span class=\"token function\">dir<\/span>&#061;in action&#061;allow<\/p>\n<h4>\u9a8c\u8bc1 ICMP&#xff1a;<\/h4>\n<p>ping 127<span class=\"token punctuation\">.<\/span>0<span class=\"token punctuation\">.<\/span>0<span class=\"token punctuation\">.<\/span>1  <span class=\"token comment\"># \u5728\u670d\u52a1\u7aef\u4e2d\u8fd0\u884c\u9a8c\u8bc1\u672c\u5730\u56de\u73af ping<\/span><br \/>\ntracert \u670d\u52a1\u7aefIP  <span class=\"token comment\"># \u5728\u5ba2\u6237\u7aef\u4e2d\u8fd0\u884c\u67e5\u770b\u7f51\u7edc\u8def\u5f84\u662f\u5426\u80fd\u5230\u8fbe\u670d\u52a1\u7aef<\/span><br \/>\nping \u670d\u52a1\u7aefIP     <span class=\"token comment\"># \u5728\u5ba2\u6237\u7aef\u4e2d\u8fd0\u884c\u518d\u6b21\u6d4b\u8bd5\u80fd\u5426 ping \u901a<\/span><\/p>\n<hr \/>\n<h3>&#x1f511; \u4e94\u3001\u914d\u7f6e SSH \u5bc6\u94a5\u8ba4\u8bc1&#xff08;\u53ef\u9009&#xff0c;\u4f46\u66f4\u5b89\u5168&#xff09;<\/h3>\n<h4>5.1 \u5ba2\u6237\u7aef\u751f\u6210 SSH \u5bc6\u94a5\u5bf9<\/h4>\n<p>ssh-keygen<br \/>\n<span class=\"token comment\"># \u6309\u56de\u8f66\u4e00\u8def\u9ed8\u8ba4\u751f\u6210\u5230&#xff1a;C:\\\\Users\\\\\u4f60\u7684\u7528\u6237\u540d\\\\.ssh\\\\id_rsa&#xff08;\u79c1\u94a5&#xff09;\u4e0e id_rsa.pub&#xff08;\u516c\u94a5&#xff09;<\/span><\/p>\n<h4>5.2 \u670d\u52a1\u7aef\u914d\u7f6e\u516c\u94a5<\/h4>\n<ul>\n<li>\u5c06 id_rsa.pub \u6587\u4ef6\u5185\u5bb9\u590d\u5236\u5230\u670d\u52a1\u7aef C:\\\\Users\\\\\u4f60\u7684\u7528\u6237\u540d\\\\.ssh\\\\authorized_keys\n<p>\u2705 \u5982\u679c .ssh \u6216 authorized_keys \u6587\u4ef6\u4e0d\u5b58\u5728&#xff0c;\u8bf7\u624b\u52a8\u521b\u5efa \u26a0 \u6ce8\u610f&#xff1a;authorized_keys \u4e0d\u8981\u6709\u540e\u7f00\u540d&#xff0c;\u5fc5\u987b\u65e0\u6269\u5c55\u540d&#xff0c;\u4e14\u9700\u7ba1\u7406\u5458\u6743\u9650\u521b\u5efa<\/p>\n<p>&#x1f512; \u5efa\u8bae\u4e3a .ssh \u6587\u4ef6\u5939\u548c authorized_keys \u8bbe\u7f6e\u6743\u9650&#xff0c;\u4ec5\u4fdd\u7559\u5f53\u524d\u7528\u6237\u4e0e SYSTEM \u7684\u6240\u6709\u8bbf\u95ee\u6743\u9650&#xff0c;\u79fb\u9664\u5176\u4ed6\u7528\u6237\u6743\u9650<\/p>\n<\/li>\n<\/ul>\n<h4>5.3 \u4fee\u6539 sshd \u914d\u7f6e\u6587\u4ef6\u4ee5\u542f\u7528\u5bc6\u94a5\u8ba4\u8bc1<\/h4>\n<ul>\n<li>\u6253\u5f00\u6587\u4ef6&#xff1a;C:\\\\ProgramData\\\\ssh\\\\sshd_config<\/li>\n<li>\u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9&#xff08;\u786e\u4fdd\u53bb\u6389\u6ce8\u91ca\u7b26\u53f7 #&#xff09;&#xff1a;PubkeyAuthentication yes         # \u542f\u7528\u5bc6\u94a5\u8ba4\u8bc1<br \/>\nPasswordAuthentication yes       # \u5141\u8bb8\u5bc6\u7801\u767b\u5f55&#xff08;\u53ef\u9009&#xff09;<br \/>\nAuthorizedKeysFile .ssh\/authorized_keys\n <\/li>\n<\/ul>\n<h4>5.4 \u91cd\u542f SSH \u670d\u52a1<\/h4>\n<p><span class=\"token function\">Restart-Service<\/span> sshd<\/p>\n<hr \/>\n<h3>&#x1f4bb; \u516d\u3001\u5ba2\u6237\u7aef\u6d4b\u8bd5 SSH \u8fde\u63a5<\/h3>\n<h4>\u547d\u4ee4\u884c\u8fde\u63a5\u65b9\u5f0f&#xff08;\u5bc6\u7801\u767b\u5f55\u6216\u5bc6\u94a5\u767b\u5f55&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u5bc6\u7801\u767b\u5f55<\/span><br \/>\n<span class=\"token function\">ssh<\/span> \u7528\u6237\u540d&#064;\u670d\u52a1\u7aefIP<\/p>\n<p><span class=\"token comment\"># \u5bc6\u94a5\u767b\u5f55&#xff08;\u8def\u5f84\u4e3a\u79c1\u94a5\u8def\u5f84&#xff09;<\/span><br \/>\n<span class=\"token function\">ssh<\/span> <span class=\"token parameter variable\">-i<\/span> ~\/.ssh\/id_rsa \u7528\u6237\u540d&#064;\u670d\u52a1\u7aefIP<\/p>\n<p>\u2757 \u4e0d\u8bba\u4f7f\u7528\u5bc6\u7801\u8fd8\u662f\u5bc6\u94a5\u767b\u5f55&#xff0c;\u547d\u4ee4\u683c\u5f0f\u90fd\u662f ssh \u7528\u6237\u540d&#064;\u670d\u52a1\u7aefIP&#xff0c;\u4ec5\u5bc6\u94a5\u767b\u5f55\u591a\u4e86 -i \u53c2\u6570<\/p>\n<hr \/>\n<h3>&#x1f5a5;\ufe0f \u4e03\u3001\u4f7f\u7528 VSCode Remote-SSH \u63d2\u4ef6\u8fde\u63a5<\/h3>\n<li>\n<p>\u6253\u5f00 VSCode&#xff0c;\u5b89\u88c5\u63d2\u4ef6 Remote &#8211; SSH<\/p>\n<\/li>\n<li>\n<p>Ctrl &#043; Shift &#043; P \u2192 \u8f93\u5165\u5e76\u9009\u62e9 Remote-SSH: Add New SSH Host<\/p>\n<\/li>\n<li>\n<p>\u9009\u62e9 C:\\\\Users\\\\\u4f60\u7684\u7528\u6237\u540d\\\\.ssh\\\\config \u914d\u7f6e\u6587\u4ef6<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u914d\u7f6e\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p> Host my-windows-laptop            # \u2190 \u8fd9\u91cc\u4f60\u53ef\u4ee5\u81ea\u5df1\u8d77\u540d\u5b57<br \/>\n    HostName xxx.xxx.xxx.xxx      # \u2190 \u8fd9\u91cc\u586b\u4e0a\u4f60\u7684 Windows \u7b14\u8bb0\u672c\u7684IP&#xff08;\u670d\u52a1\u7aefIPv4\u5730\u5740&#xff09;<br \/>\n    User MikeMengTR               # \u2190 \u8fd9\u91cc\u586b\u4e0a\u4f60\u7684 Windows \u7528\u6237\u540d<br \/>\n    Port 22                       # \u2190 \u9ed8\u8ba4\u7aef\u53e3\u5c31\u662f22&#xff0c;\u4f46\u6700\u597d\u5199\u4e0a<br \/>\n    # IdentityFile ~\/.ssh\/id_rsa  # \u2190 \u5982\u679c\u7528\u5bc6\u94a5\u8ba4\u8bc1\u53ef\u4ee5\u52a0\u8fd9\u4e00\u884c\n <\/li>\n<li>\n<p>\u4fdd\u5b58\u540e\u5728\u5de6\u4fa7\u8fdc\u7a0b\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u70b9\u51fb\u4e3b\u673a\u540d\u8fde\u63a5<\/p>\n<p>\u82e5\u4f7f\u7528\u5bc6\u7801\u8fde\u63a5&#xff0c;\u7cfb\u7edf\u4f1a\u63d0\u793a\u8f93\u5165\u5bc6\u7801&#xff1b;\u82e5\u914d\u7f6e\u4e86\u5bc6\u94a5&#xff0c;\u5c06\u81ea\u52a8\u8fde\u63a5<\/p>\n<\/li>\n<hr \/>\n<h3>\u2705 \u603b\u7ed3 Checklist<\/h3>\n<p>\u00b7\u4f7f\u7528\u672c\u5730\u8d26\u6237\u767b\u5f55\u7cfb\u7edf<\/p>\n<p>\u00b7\u5b89\u88c5\u5e76\u914d\u7f6e OpenSSH \u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef<\/p>\n<p>\u00b7\u542f\u7528\u9632\u706b\u5899\u89c4\u5219\u653e\u884c 22 \u7aef\u53e3<\/p>\n<p>\u00b7&#xff08;\u53ef\u9009&#xff09;\u542f\u7528 ICMP Ping \u529f\u80fd<\/p>\n<p>\u00b7\u914d\u7f6e SSH \u5bc6\u94a5\u8ba4\u8bc1<\/p>\n<p>\u00b7\u6210\u529f\u8fde\u63a5\u5e76\u4f7f\u7528 VSCode Remote-SSH<\/p>\n<p>&#x1f680; \u4f60\u73b0\u5728\u5e94\u8be5\u80fd\u591f\u987a\u5229\u4ece\u5ba2\u6237\u7aef\u901a\u8fc7 SSH \u6216 VSCode \u5b9e\u73b0\u8fdc\u7a0b\u8fde\u63a5\u548c\u63a7\u5236\u4f60\u7684 Windows \u670d\u52a1\u5668\u4e86&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb745\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u672c\u6587\u7ae0\u81f4\u529b\u4e8e\u89e3\u51b3\u5982\u4f55\u5c06\u81ea\u5df1\u7684win10\/11\u7535\u8111\u8bbe\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7vscode\u7684openssh\u5b9e\u73b0\u8fdc\u7a0b\u64cd\u4f5c\uff1a\u4f7f\u7528\u672c\u5730\u8d26\u6237\u767b\u5f55\u7cfb\u7edf\u00b7\u5b89\u88c5\u5e76\u914d\u7f6e OpenSSH \u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u00b7\u542f\u7528\u9632\u706b\u5899\u89c4\u5219\u653e\u884c 22 \u7aef\u53e3\u00b7\uff08\u53ef\u9009\uff09\u542f\u7528 ICMP Ping \u529f\u80fd\u00b7\u914d\u7f6e SSH \u5bc6\u94a5\u8ba4\u8bc1\u00b7\u6210\u529f\u8fde\u63a5\u5e76\u4f7f\u7528 VSCode Remote-SSH\ud83d\ude80<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[77,791,211,44],"topic":[],"class_list":["post-35866","post","type-post","status-publish","format-standard","hentry","category-server","tag-ssh","tag-791","tag-211","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09 - \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\/35866.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb745\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u672c\u6587\u7ae0\u81f4\u529b\u4e8e\u89e3\u51b3\u5982\u4f55\u5c06\u81ea\u5df1\u7684win10\/11\u7535\u8111\u8bbe\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7vscode\u7684openssh\u5b9e\u73b0\u8fdc\u7a0b\u64cd\u4f5c\uff1a\u4f7f\u7528\u672c\u5730\u8d26\u6237\u767b\u5f55\u7cfb\u7edf\u00b7\u5b89\u88c5\u5e76\u914d\u7f6e OpenSSH \u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u00b7\u542f\u7528\u9632\u706b\u5899\u89c4\u5219\u653e\u884c 22 \u7aef\u53e3\u00b7\uff08\u53ef\u9009\uff09\u542f\u7528 ICMP Ping \u529f\u80fd\u00b7\u914d\u7f6e SSH \u5bc6\u94a5\u8ba4\u8bc1\u00b7\u6210\u529f\u8fde\u63a5\u5e76\u4f7f\u7528 VSCode Remote-SSH\ud83d\ude80\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35866.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-06T21:50:51+00:00\" \/>\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\/35866.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35866.html\",\"name\":\"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-06T21:50:51+00:00\",\"dateModified\":\"2025-05-06T21:50:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35866.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35866.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35866.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09\"}]},{\"@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":"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09 - \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\/35866.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb745\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u672c\u6587\u7ae0\u81f4\u529b\u4e8e\u89e3\u51b3\u5982\u4f55\u5c06\u81ea\u5df1\u7684win10\/11\u7535\u8111\u8bbe\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7vscode\u7684openssh\u5b9e\u73b0\u8fdc\u7a0b\u64cd\u4f5c\uff1a\u4f7f\u7528\u672c\u5730\u8d26\u6237\u767b\u5f55\u7cfb\u7edf\u00b7\u5b89\u88c5\u5e76\u914d\u7f6e OpenSSH \u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u00b7\u542f\u7528\u9632\u706b\u5899\u89c4\u5219\u653e\u884c 22 \u7aef\u53e3\u00b7\uff08\u53ef\u9009\uff09\u542f\u7528 ICMP Ping \u529f\u80fd\u00b7\u914d\u7f6e SSH \u5bc6\u94a5\u8ba4\u8bc1\u00b7\u6210\u529f\u8fde\u63a5\u5e76\u4f7f\u7528 VSCode Remote-SSH\ud83d\ude80","og_url":"https:\/\/www.wsisp.com\/helps\/35866.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-06T21:50:51+00:00","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\/35866.html","url":"https:\/\/www.wsisp.com\/helps\/35866.html","name":"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-06T21:50:51+00:00","dateModified":"2025-05-06T21:50:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35866.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35866.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35866.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5c06\u7535\u8111\u914d\u7f6e\u4e3a\u670d\u52a1\u5668\uff0c\u901a\u8fc7SSH \u8fdc\u7a0b\u8fde\u63a5\u6559\u7a0b\uff08\u9002\u7528\u4e8e Win10 \/ Win11\u7535\u8111\uff09"}]},{"@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\/35866","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=35866"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35866\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35866"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}