{"id":32512,"date":"2025-04-24T19:01:12","date_gmt":"2025-04-24T11:01:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/32512.html"},"modified":"2025-04-24T19:01:12","modified_gmt":"2025-04-24T11:01:12","slug":"%e9%a1%b9%e7%9b%ae%e5%ae%9e%e8%ae%ad%e7%ba%aa%e5%ae%9e%ef%bc%88%e4%ba%8c%ef%bc%89-vscode%e8%bf%9e%e6%8e%a5%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e7%90%86%e8%ae%ba%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/32512.html","title":{"rendered":"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\uff09"},"content":{"rendered":"<h3>\u7406\u8bba\u90e8\u5206<\/h3>\n<p>\u5728\u73b0\u4ee3\u8f6f\u4ef6\u5f00\u53d1\u4e2d&#xff0c;\u8fdc\u7a0b\u5f00\u53d1\u5df2\u7ecf\u6210\u4e3a\u4e00\u79cd\u975e\u5e38\u5e38\u89c1\u7684\u65b9\u5f0f\u3002\u5c24\u5176\u662f\u5728\u9700\u8981\u90e8\u7f72\u5230\u4e91\u670d\u52a1\u5668\u3001\u8fd0\u884c\u7279\u5b9a\u73af\u5883\u6216\u8005\u56e2\u961f\u534f\u4f5c\u7684\u573a\u666f\u4e0b&#xff0c;\u5f00\u53d1\u8005\u5f80\u5f80\u9700\u8981\u8fde\u63a5\u8fdc\u7a0b\u4e3b\u673a\u6765\u8fdb\u884c\u4ee3\u7801\u7f16\u5199\u3001\u8c03\u8bd5\u548c\u90e8\u7f72\u3002<\/p>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u79cd\u8fdc\u7a0b\u8fde\u63a5\u5e76\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027&#xff0c;\u6211\u4eec\u901a\u5e38\u4f7f\u7528 SSH \u534f\u8bae\u3002<\/p>\n<h4>1. \u4ec0\u4e48\u662f SSH&#xff1f;<\/h4>\n<p>SSH \u662f\u4e00\u79cd\u52a0\u5bc6\u7684\u7f51\u7edc\u534f\u8bae&#xff0c;\u4e3b\u8981\u7528\u4e8e\u5728\u4e0d\u5b89\u5168\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u5b89\u5168\u5730\u767b\u5f55\u8fdc\u7a0b\u670d\u52a1\u5668\u3001\u6267\u884c\u547d\u4ee4\u3001\u4f20\u8f93\u6587\u4ef6\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>SSH \u7684\u6838\u5fc3\u76ee\u6807\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4fdd\u5bc6\u6027&#xff08;Confidentiality&#xff09;&#xff1a;\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4f1a\u88ab\u52a0\u5bc6&#xff0c;\u9632\u6b62\u4fe1\u606f\u88ab\u7a83\u542c&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5b8c\u6574\u6027&#xff08;Integrity&#xff09;&#xff1a;\u786e\u4fdd\u4f20\u8f93\u7684\u6570\u636e\u6ca1\u6709\u88ab\u7be1\u6539&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u8eab\u4efd\u9a8c\u8bc1&#xff08;Authentication&#xff09;&#xff1a;\u786e\u4fdd\u901a\u4fe1\u53cc\u65b9\u7684\u8eab\u4efd\u771f\u5b9e\u53ef\u4fe1\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5728\u6280\u672f\u5b9e\u73b0\u4e0a&#xff0c;SSH \u4e3b\u8981\u4f9d\u8d56\u4e8e\u5bc6\u7801\u5b66\u4e2d\u7684\u4e09\u79cd\u673a\u5236&#xff1a;\u975e\u5bf9\u79f0\u52a0\u5bc6\u3001\u5bf9\u79f0\u52a0\u5bc6\u548c\u54c8\u5e0c\u7b97\u6cd5\u3002\u9996\u5148&#xff0c;SSH \u4f1a\u5728\u8fde\u63a5\u5f00\u59cb\u65f6\u4f7f\u7528\u975e\u5bf9\u79f0\u52a0\u5bc6&#xff0c;\u4e5f\u5c31\u662f\u5e38\u8bf4\u7684\u201c\u516c\u94a5\u201d\u548c\u201c\u79c1\u94a5\u201d\u673a\u5236&#xff0c;\u6765\u9a8c\u8bc1\u53cc\u65b9\u8eab\u4efd&#xff0c;\u5e76\u534f\u5546\u4e00\u4e2a\u4e34\u65f6\u7684\u52a0\u5bc6\u5bc6\u94a5\u3002\u63a5\u7740&#xff0c;\u771f\u6b63\u7684\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4f1a\u4f7f\u7528\u5bf9\u79f0\u52a0\u5bc6&#xff0c;\u8fd9\u79cd\u52a0\u5bc6\u65b9\u5f0f\u8ba1\u7b97\u6548\u7387\u9ad8\u3001\u901f\u5ea6\u5feb&#xff0c;\u9002\u5408\u5927\u91cf\u6570\u636e\u4f20\u8f93\u3002\u6700\u540e&#xff0c;\u4e3a\u4e86\u4fdd\u8bc1\u4f20\u8f93\u5185\u5bb9\u7684\u5b8c\u6574\u6027&#xff0c;\u8fd8\u4f1a\u4f7f\u7528\u54c8\u5e0c\u51fd\u6570\u6765\u751f\u6210\u201c\u6570\u5b57\u6307\u7eb9\u201d&#xff0c;\u9632\u6b62\u6570\u636e\u88ab\u7be1\u6539\u3002<\/p>\n<h4>2. SSH \u7684\u5de5\u4f5c\u673a\u5236<\/h4>\n<p>\u4e00\u4e2a SSH \u8fde\u63a5\u5927\u81f4\u53ef\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4&#xff1a;<\/p>\n<li>\n<p>\u63e1\u624b\u9636\u6bb5&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4ea4\u6362\u516c\u94a5\u3001\u534f\u5546\u52a0\u5bc6\u7b97\u6cd5&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u8eab\u4efd\u9a8c\u8bc1\u9636\u6bb5&#xff1a;\u5ba2\u6237\u7aef\u901a\u8fc7\u5bc6\u7801\u6216\u5bc6\u94a5\u8ba4\u8bc1\u81ea\u5df1\u7684\u8eab\u4efd&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5efa\u7acb\u5b89\u5168\u901a\u9053&#xff1a;\u4e4b\u540e\u7684\u6240\u6709\u901a\u4fe1\u90fd\u901a\u8fc7\u52a0\u5bc6\u901a\u9053\u8fdb\u884c&#xff0c;\u786e\u4fdd\u5b89\u5168\u3002<\/p>\n<\/li>\n<p>\u201c\u63e1\u624b\u9636\u6bb5\u201d&#xff1a;\u5c31\u50cf\u4e24\u4e2a\u964c\u751f\u4eba\u521d\u6b21\u89c1\u9762\u65f6&#xff0c;\u4f1a\u5148\u81ea\u6211\u4ecb\u7ecd\u3001\u4e92\u6362\u8054\u7cfb\u65b9\u5f0f&#xff0c;SSH \u4e2d\u7684\u5ba2\u6237\u7aef&#xff08;\u6211\u4eec\u7528\u7684\u7535\u8111&#xff09;\u548c\u670d\u52a1\u5668&#xff08;\u8fdc\u7a0b\u4e3b\u673a&#xff09;\u4e5f\u4f1a\u4ea4\u6362\u4e00\u4e9b\u91cd\u8981\u7684\u4fe1\u606f&#xff0c;\u6bd4\u5982\u5404\u81ea\u7684\u201c\u516c\u94a5\u201d&#xff08;\u4e00\u79cd\u80fd\u516c\u5f00\u5206\u4eab\u7684\u52a0\u5bc6\u65b9\u5f0f&#xff09;\u548c\u652f\u6301\u54ea\u4e9b\u201c\u52a0\u5bc6\u65b9\u5f0f\u201d&#xff08;\u5c31\u50cf\u51b3\u5b9a\u7528\u54ea\u79cd\u8bed\u8a00\u4ea4\u6d41&#xff09;\u3002\u8fd9\u4e2a\u9636\u6bb5\u7684\u76ee\u7684\u5c31\u662f\u8ba9\u53cc\u65b9\u786e\u5b9a\u4e00\u4e2a\u7edf\u4e00\u7684\u201c\u52a0\u5bc6\u89c4\u5219\u201d\u3002<\/p>\n<p>\u201c\u8eab\u4efd\u9a8c\u8bc1\u9636\u6bb5\u201d&#xff1a;\u8fd9\u4e2a\u9636\u6bb5\u5c31\u597d\u6bd4\u4f60\u8981\u8fdb\u67d0\u4e2a\u5927\u697c&#xff0c;\u4fdd\u5b89\u4e0d\u8ba4\u8bc6\u4f60&#xff0c;\u4f46\u4f60\u51fa\u793a\u4e86\u95e8\u5361\u6216\u8eab\u4efd\u8bc1\u3002SSH \u4e2d&#xff0c;\u5ba2\u6237\u7aef\u8981\u8bc1\u660e\u81ea\u5df1\u662f\u8c01&#xff0c;\u901a\u5e38\u7684\u65b9\u5f0f\u6709\u4e24\u79cd&#xff1a;\u4e00\u79cd\u662f\u8f93\u5165\u5bc6\u7801&#xff08;\u5c31\u50cf\u5237\u5361&#xff09;&#xff0c;\u53e6\u4e00\u79cd\u662f\u4f7f\u7528 SSH \u5bc6\u94a5&#xff08;\u50cf\u9ad8\u7ea7\u522b\u7684\u6307\u7eb9\u9a8c\u8bc1&#xff09;&#xff0c;\u670d\u52a1\u5668\u4f1a\u786e\u8ba4\u4f60\u7684\u8eab\u4efd&#xff0c;\u51b3\u5b9a\u662f\u5426\u5141\u8bb8\u4f60\u8fdb\u5165\u3002<\/p>\n<p>\u201c\u5efa\u7acb\u4e00\u6761\u5b89\u5168\u901a\u9053\u201d&#xff1a;\u8fd9\u6761\u901a\u9053\u7684\u4f5c\u7528\u5c31\u50cf\u4e00\u4e2a\u53ea\u80fd\u4f60\u548c\u670d\u52a1\u5668\u770b\u89c1\u7684\u4e13\u5c5e\u5bc6\u9053&#xff0c;\u65e0\u8bba\u4f60\u4e4b\u540e\u4f20\u4ec0\u4e48\u6570\u636e&#xff0c;\u54ea\u6015\u662f\u5f88\u79c1\u5bc6\u7684\u547d\u4ee4\u6216\u91cd\u8981\u7684\u6587\u4ef6&#xff0c;\u5728\u8fd9\u6761\u5bc6\u9053\u91cc\u90fd\u88ab\u52a0\u5bc6\u5305\u88f9\u7740&#xff0c;\u522b\u4eba\u5373\u4f7f\u62e6\u622a\u4e86\u4fe1\u606f&#xff0c;\u4e5f\u53ea\u80fd\u770b\u5230\u4e00\u5806\u4e71\u7801&#xff0c;\u65e0\u6cd5\u7834\u89e3\u3002<\/p>\n<h3>\u64cd\u4f5c\u90e8\u5206&#xff08;Mac\u73af\u5883&#xff09;<\/h3>\n<h4 style=\"background-color:transparent\">\u4e00\u3001\u73af\u5883\u51c6\u5907<\/h4>\n<p>1.\u5b89\u88c5VSCode<\/p>\n<p>\u4ece\u5b98\u7f51\u4e0b\u8f7d\u5e76\u5b89\u88c5\u00a0VSCode.<\/p>\n<p>2.\u68c0\u67e5 SSH \u5ba2\u6237\u7aef<\/p>\n<p>Mac \u7cfb\u7edf\u81ea\u5e26 OpenSSH \u5ba2\u6237\u7aef&#xff0c;\u901a\u8fc7\u7ec8\u7aef\u6267\u884cssh-v\u786e\u8ba4\u662f\u5426\u53ef\u7528\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"308\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110108-680a19f4e08c5.png\" width=\"1136\" \/><\/p>\n<p>\u51fa\u73b0\u4ee5\u4e0a\u754c\u9762\u5219\u4e3a\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p>brew install openssh <\/p>\n<p>\u82e5\u65e0&#xff0c;\u53ef\u901a\u8fc7 Homebrew \u5b89\u88c5<\/p>\n<p>3.\u8fdc\u7a0b\u670d\u52a1\u5668\u8981\u6c42&#xff08;\u53ef\u4ee5\u662f\u5b66\u6821\u7684\u670d\u52a1\u5668&#xff09;<\/p>\n<p>\u786e\u4fdd\u670d\u52a1\u5668\u5df2\u5f00\u542f SSH \u670d\u52a1&#xff08;\u9ed8\u8ba4\u7aef\u53e3 22&#xff09;<\/p>\n<h4>\u4e8c\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e Remote-SSH \u63d2\u4ef6<\/h4>\n<p>1.\u5b89\u88c5\u63d2\u4ef6<\/p>\n<p>\u6253\u5f00 VSCode&#xff0c;\u8fdb\u5165\u6269\u5c55\u5e02\u573a&#xff08;Cmd&#043;Shift&#043;X&#xff09;&#xff0c;\u641c\u7d22\u00a0Remote &#8211; SSH\u00a0\u5e76\u5b89\u88c5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"386\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110109-680a19f5310ed.png\" width=\"1132\" \/><\/p>\n<p>2.SSH\u8fde\u63a5\u5e76\u767b\u5f55<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"308\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110109-680a19f57ba77.png\" width=\"1978\" \/>\u70b9\u51fb\u52a0\u53f7\u8fdb\u5165\u8fde\u63a5\u754c\u9762<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"304\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110109-680a19f5ceb3e.png\" width=\"974\" \/><\/p>\n<p>\u8f93\u5165\u670d\u52a1\u5668\u5730\u5740\u548c\u5bc6\u94a5\u8fdb\u884c\u8fde\u63a5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"318\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110110-680a19f611f3d.png\" width=\"1316\" \/><\/p>\n<p>\u9009\u62e9\u9ed8\u8ba4\u6587\u4ef6\u5373\u53ef<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"278\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110110-680a19f655a8c.png\" width=\"1102\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"836\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110110-680a19f6976a4.png\" width=\"1854\" \/><\/p>\n<p>\u8fde\u63a5\u6210\u529f&#xff0c;\u53ef\u4ee5\u770b\u5230\u670d\u52a1\u5668\u7684\u6587\u4ef6\u5217\u8868<\/p>\n<\/p>\n<h4>\u4e09\u3001\u4f7f\u7528 SCP \u547d\u4ee4\u62f7\u8d1d\u6587\u4ef6<\/h4>\n<p>SCP\u662f\u4e00\u79cd\u901a\u8fc7 SSH \u534f\u8bae\u8fdb\u884c\u6587\u4ef6\u4f20\u8f93\u7684\u5de5\u5177&#xff0c;\u5b83\u53ef\u4ee5\u5728\u672c\u5730\u8ba1\u7b97\u673a\u548c\u8fdc\u7a0b\u670d\u52a1\u5668\u4e4b\u95f4\u5b89\u5168\u5730\u4f20\u8f93\u6587\u4ef6\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d&#xff0c;\u4f7f\u7528 SCP \u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u672c\u5730\u6587\u4ef6\u4e0a\u4f20\u5230\u8fdc\u7a0b\u670d\u52a1\u5668&#xff0c;\u6216\u8005\u5c06\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u4e0b\u8f7d\u5230\u672c\u5730\u8fdb\u884c\u7f16\u8f91\u3002<\/p>\n<h4>1. \u57fa\u672c\u8bed\u6cd5<\/h4>\n<p>SCP \u7684\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6e90\u8def\u5f84&#xff1a;\u6307\u8981\u4f20\u8f93\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u8def\u5f84\u3002<\/p>\n<\/li>\n<li>\n<p>\u76ee\u6807\u8def\u5f84&#xff1a;\u6307\u6587\u4ef6\u4f20\u8f93\u7684\u76ee\u6807\u4f4d\u7f6e&#xff0c;\u683c\u5f0f\u901a\u5e38\u662f username&#064;hostname:\/path\u3002<\/p>\n<\/li>\n<\/ul>\n<p>scp [\u9009\u9879] [\u6e90\u8def\u5f84] [\u76ee\u6807\u8def\u5f84]<\/p>\n<h4>2. \u672c\u5730\u4e0a\u4f20\u5230\u8fdc\u7a0b\u670d\u52a1\u5668<\/h4>\n<p>\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u672c\u5730\u6587\u4ef6 file.txt&#xff0c;\u5e76\u4e14\u5e0c\u671b\u5c06\u5176\u4e0a\u4f20\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u7684 \/home\/username\/ \u76ee\u5f55\u4e0b&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>scp \/path\/to\/local\/file.txt username&#064;remote_server:\/home\/username\/<\/p>\n<h4>3. \u8fdc\u7a0b\u670d\u52a1\u5668\u4e0b\u8f7d\u5230\u672c\u5730<\/h4>\n<p>\u5982\u679c\u4f60\u60f3\u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0b\u8f7d\u6587\u4ef6\u5230\u672c\u5730&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>scp username&#064;remote_server:\/path\/to\/remote\/file.txt \/path\/to\/local\/<\/p>\n<h4>4. \u4f20\u8f93\u6574\u4e2a\u76ee\u5f55&#xff08;\u9012\u5f52&#xff09;<\/h4>\n<p>\u82e5\u9700\u8981\u4e0a\u4f20\u6574\u4e2a\u76ee\u5f55&#xff08;\u5305\u62ec\u5b50\u76ee\u5f55\u548c\u6587\u4ef6&#xff09;&#xff0c;\u53ef\u4ee5\u4f7f\u7528 -r \u9009\u9879\u6765\u9012\u5f52\u590d\u5236\u76ee\u5f55&#xff1a;<\/p>\n<p>scp -r \/path\/to\/local\/directory username&#064;remote_server:\/path\/to\/remote\/<\/p>\n<h4>5. \u6307\u5b9a SSH \u7aef\u53e3<\/h4>\n<p>\u5982\u679c\u8fdc\u7a0b\u670d\u52a1\u5668\u7684 SSH \u670d\u52a1\u4e0d\u4f7f\u7528\u9ed8\u8ba4\u7aef\u53e3&#xff08;22&#xff09;&#xff0c;\u4f60\u53ef\u4ee5\u901a\u8fc7 -P \u9009\u9879\u6307\u5b9a\u7aef\u53e3\u53f7&#xff1a;<\/p>\n<p>scp -P 2222 \/path\/to\/local\/file.txt username&#064;remote_server:\/path\/to\/remote\/<\/p>\n<h4><\/h4>\n<p>\u00a0 <\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb779\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86 SSH \u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\u548c\u5de5\u4f5c\u539f\u7406\uff0c\u91cd\u70b9\u89e3\u91ca\u4e86 SSH \u7684\u63e1\u624b\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u52a0\u5bc6\u901a\u9053\u5efa\u7acb\u8fc7\u7a0b\u3002\u63a5\u7740\uff0c\u6587\u7ae0\u901a\u8fc7 Mac \u73af\u5883\u793a\u8303\u4e86\u5982\u4f55\u5b89\u88c5 VSCode \u548c Remote-SSH \u63d2\u4ef6\uff0c\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\u5668\u5e76\u8fdb\u884c\u6587\u4ef6\u4f20\u8f93\u3002\u6700\u540e\uff0c\u4ecb\u7ecd\u4e86 SCP \u547d\u4ee4\u7684\u4f7f\u7528\uff0c\u5e2e\u52a9\u7528\u6237\u5728\u672c\u5730\u4e0e\u8fdc\u7a0b\u670d\u52a1\u5668\u4e4b\u95f4\u5b89\u5168\u5730\u4f20\u8f93\u6587\u4ef6\u3002<\/p>\n","protected":false},"author":2,"featured_media":32505,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70,76,43],"topic":[],"class_list":["post-32512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ide","tag-vscode","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\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\/32512.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb779\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86 SSH \u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\u548c\u5de5\u4f5c\u539f\u7406\uff0c\u91cd\u70b9\u89e3\u91ca\u4e86 SSH \u7684\u63e1\u624b\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u52a0\u5bc6\u901a\u9053\u5efa\u7acb\u8fc7\u7a0b\u3002\u63a5\u7740\uff0c\u6587\u7ae0\u901a\u8fc7 Mac \u73af\u5883\u793a\u8303\u4e86\u5982\u4f55\u5b89\u88c5 VSCode \u548c Remote-SSH \u63d2\u4ef6\uff0c\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\u5668\u5e76\u8fdb\u884c\u6587\u4ef6\u4f20\u8f93\u3002\u6700\u540e\uff0c\u4ecb\u7ecd\u4e86 SCP \u547d\u4ee4\u7684\u4f7f\u7528\uff0c\u5e2e\u52a9\u7528\u6237\u5728\u672c\u5730\u4e0e\u8fdc\u7a0b\u670d\u52a1\u5668\u4e4b\u95f4\u5b89\u5168\u5730\u4f20\u8f93\u6587\u4ef6\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/32512.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-24T11:01:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110108-680a19f4e08c5.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32512.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/32512.html\",\"name\":\"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-24T11:01:12+00:00\",\"dateModified\":\"2025-04-24T11:01:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/32512.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/32512.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32512.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\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":"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\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\/32512.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb779\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86 SSH \u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\u548c\u5de5\u4f5c\u539f\u7406\uff0c\u91cd\u70b9\u89e3\u91ca\u4e86 SSH \u7684\u63e1\u624b\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u52a0\u5bc6\u901a\u9053\u5efa\u7acb\u8fc7\u7a0b\u3002\u63a5\u7740\uff0c\u6587\u7ae0\u901a\u8fc7 Mac \u73af\u5883\u793a\u8303\u4e86\u5982\u4f55\u5b89\u88c5 VSCode \u548c Remote-SSH \u63d2\u4ef6\uff0c\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\u5668\u5e76\u8fdb\u884c\u6587\u4ef6\u4f20\u8f93\u3002\u6700\u540e\uff0c\u4ecb\u7ecd\u4e86 SCP \u547d\u4ee4\u7684\u4f7f\u7528\uff0c\u5e2e\u52a9\u7528\u6237\u5728\u672c\u5730\u4e0e\u8fdc\u7a0b\u670d\u52a1\u5668\u4e4b\u95f4\u5b89\u5168\u5730\u4f20\u8f93\u6587\u4ef6\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/32512.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-24T11:01:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424110108-680a19f4e08c5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/32512.html","url":"https:\/\/www.wsisp.com\/helps\/32512.html","name":"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-24T11:01:12+00:00","dateModified":"2025-04-24T11:01:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/32512.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/32512.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/32512.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9879\u76ee\u5b9e\u8bad\u7eaa\u5b9e\uff08\u4e8c\uff09\u2014\u2014vscode\u8fde\u63a5\u670d\u52a1\u5668\uff08\u7406\u8bba+\u64cd\u4f5c\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\/32512","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=32512"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/32505"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=32512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=32512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=32512"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=32512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}