{"id":24075,"date":"2025-04-19T09:21:22","date_gmt":"2025-04-19T01:21:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24075.html"},"modified":"2025-04-19T09:21:22","modified_gmt":"2025-04-19T01:21:22","slug":"%e4%bd%bf%e7%94%a8-ecs%e6%9c%8d%e5%8a%a1%e5%99%a8-%e5%92%8c-vscode-%e6%90%ad%e5%bb%ba%e8%bf%9c%e7%a8%8b%e5%bc%80%e5%8f%91%e7%ab%99","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24075.html","title":{"rendered":"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9"},"content":{"rendered":"<h2 id=\"slide-0\">SSH \u8fde\u63a5\u6d4b\u8bd5<\/h2>\n<p>\u5b66\u4e60\u8fc7 Linux \u7684\u5e94\u8be5\u5bf9 SSH \u5f88\u4e86\u89e3&#xff0c;\u4f7f\u7528\u5728\u6b64\u4e0d\u4ecb\u7ecd Linux \u4e0a\u7684\u4f7f\u7528<\/p>\n<p>\u5728 Window \u4e2d\u6253\u5f00 PowerShell \u7a0b\u5e8f\u3010\u6b64\u5904\u4e0d\u77e5\u9053 PowerShell \u53ef\u4ee5\u767e\u5ea6\u4e00\u4e0b&#xff0c;\u4e0d\u505a\u8fc7\u591a\u4ecb\u7ecd\u3011<\/p>\n<ul>\n<li>\u65b9\u6cd5\u4e00&#xff1a;\u6309\u4f4f Shift &#xff0c;\u9f20\u6807\u53f3\u952e\u684c\u9762\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"237\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012118-6802fa8e3eb8a.png\" width=\"532\" \/><\/p>\n<\/li>\n<li>\u65b9\u6cd5\u4e8c&#xff1a;win&#043;r, \u8f93\u5165\u00a0powershell, \u56de\u8f66\u8fdb\u5165<\/li>\n<\/ul>\n<p>\u8fdb\u5165PowerShell \u7a0b\u5e8f\u540e&#xff0c;\u4f7f\u7528ssh\u767b\u5f55ECS\u670d\u52a1\u5668<\/p>\n<p>ssh -p \u7aef\u53e3 username&#064;host<br \/>\n# \u8bf4\u660e&#xff1a;\u7aef\u53e3\u4e00\u822c\u662f 22&#xff1b;username \u662f\u6307ECS\u670d\u52a1\u5668\u4e2d\u7cfb\u7edf\u7528\u6237&#xff1b;host \u662fECS\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740<br \/>\n# \u56de\u8f66\u540e&#xff0c;\u4f1a\u8ba9\u8f93\u5165\u5bc6\u7801\u3010\u8f93\u5bc6\u7801\u662f\u770b\u4e0d\u89c1\u7684\u3011 <\/p>\n<p>\u8fd9\u662f ssh \u7684\u547d\u4ee4\u683c\u5f0f&#xff0c;ssh \u662f\u57fa\u672c\u529f\u4e0d\u4f1a\u7684\u76f4\u63a5\u767e\u5ea6 ssh \u7528\u6cd5<\/p>\n<p>\u4f8b\u5b50\u3010\u767b\u5f55\u4e3b\u673a\u5730\u5740\u4e3a\u00a048.106.214.25\u00a0\u7684 root \u7528\u6237\u3011<\/p>\n<p>ssh -p 22 root&#064;48.106.214.25<\/p>\n<h3 id=\"slide-3\">\u8bbe\u7f6e SSH \u5bc6\u94a5\u5bf9<\/h3>\n<p>\u8fdb\u5165 \u672c\u5730\u7528\u6237\u76ee\u5f55 \u7684\u00a0.ssh\u00a0\u9690\u85cf\u76ee\u5f55<\/p>\n<p>\u4f7f\u7528\u6307\u4ee4<\/p>\n<p>window: cd ~\\\\.ssh<br \/>\nlinux: cd ~\/.ssh <\/p>\n<ul>\n<li>\u521b\u5efa\u5bc6\u94a5\u5bf9&#xff0c;\u6307\u4ee4<\/li>\n<\/ul>\n<p>ssh-keygen -t rsa -C &#034;tag&#034; -f id_rsa<br \/>\n# \u8bf4\u660e&#xff1a;-t \u540e\u9762\u662f\u52a0\u5bc6\u5f62\u5f0f&#xff1b;-C \u540e\u9762\u662f\u5907\u6ce8&#xff1b;-f \u5bc6\u94a5\u540d\u79f0 <\/p>\n<ul>\n<li>\u914d\u7f6e config \u6587\u4ef6\u3010\u5728 .ssh \u76ee\u5f55\u4e0b&#xff0c;\u5982\u679c\u6ca1\u6709\u81ea\u5df1\u65b0\u5efa\u4e00\u4e2a\u540d\u5b57\u662f config \u7684\u6587\u4ef6\u3011&#xff0c;\u4e0b\u9762\u914d\u7f6e\u683c\u5f0f<\/li>\n<\/ul>\n<p>Host \u540d\u79f0\u3010\u968f\u610f\u3011<br \/>\n    HostName ECS\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740<br \/>\n    User ECS\u670d\u52a1\u5668\u4e2d\u7cfb\u7edf\u7528\u6237<br \/>\n    Port \u7aef\u53e3<br \/>\n    IdentityFile \u5bc6\u94a5\u6587\u4ef6\u4f4d\u7f6e<br \/>\n# \u4f8b\u5b50<br \/>\nHost myhost<br \/>\n    HostName 48.106.214.25<br \/>\n    User root<br \/>\n    Port 22<br \/>\n    IdentityFile ~\/.ssh\/id_rsa <\/p>\n<ul>\n<li>\n<p>\u5c06\u516c\u94a5\u3010id_rsa.pub\u3011\u53d1\u9001\u5230 ECS\u670d\u52a1\u5668\u4e2d\u7cfb\u7edf\u7684\u7528\u6237<\/p>\n<ul>\n<li>\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528\u00a0ssh-copy-id root&#064;48.106.214.25&#xff1b;\u90e8\u5206\u4eba\u53ef\u80fd\u6ca1\u6709 ssh-copy-id \u7a0b\u5e8f<\/li>\n<li>\u65b9\u6cd5\u4e8c&#xff1a;\u5c06\u516c\u94a5\u6587\u4ef6\u53d1\u9001\u5230ECS\u670d\u52a1\u5668\u540e\u767b\u5f55ECS\u670d\u52a1\u5668&#xff0c;\u518d\u4f7f\u7528\u547d\u4ee4\u00a0cat .\/id_rsa.pub &gt;&gt; ~\/.ssh\/authorized_keys<\/li>\n<\/ul>\n<\/li>\n<li>\u4ee5\u4e0a\u5185\u5bb9\u505a\u4e3a\u540e\u6d4b\u8bd5 ssh \u8fde\u63a5 \u4f7f\u7528\u00a0ssh myhost<\/li>\n<\/ul>\n<p>ssh myhost<br \/>\n# \u8bf4\u660e&#xff1a;myhost \u662f\u4e0a\u9762\u914d\u7f6e\u7684&#xff0c;Host \u914d\u7f6e\u9879\u540e\u9762\u7684\u5185\u5bb9 <\/p>\n<p>\u00a0&gt;&gt; \u5982\u679c\u51fa\u73b0<span style=\"color:#fe2c24\">\u7ba1\u9053\u5199\u5165\u9519\u8bef<\/span>\u4e4b\u7c7b\u7684&#xff0c;\u5148\u628a<span style=\"color:#fe2c24\">~\/.ssh\/known_hosts<\/span>\u91cc\u7684\u90fd\u5220\u4e86&#xff0c;\u518d\u6b21\u6d4b\u8bd5&#xff01;&#xff01;<\/p>\n<h3 id=\"slide-4\">vsCode \u8bbe\u7f6e<\/h3>\n<p>\u5b89\u88c5\u63d2\u4ef6\u00a0Remote Development\u00a0, \u6b64\u63d2\u4ef6\u662f\u5fae\u8f6f\u5b98\u65b9\u7684\u8bf7\u653e\u5fc3\u98df\u7528<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"553\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012118-6802fa8e5d85e.png\" width=\"1004\" \/><\/p>\n<p>\u63d0\u793a&#xff1a;<\/p>\n<ul>\n<li>\u5b89\u88c5\u5b8c\u63d2\u4ef6\u540e&#xff0c;\u5168\u5c40\u7981\u7528<\/li>\n<li>\u5bfb\u627e\u4e00\u4e2a\u76ee\u5f55\u3010\u81ea\u5df1\u521b\u5efa\u4e00\u4e2a\u7a7a\u6587\u4ef6\u5939\u3011&#xff0c;\u5047\u8bbe\u6b64\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u00a0Test<\/li>\n<li>\u4f7f\u7528 vsCode \u6253\u5f00\u6b64\u76ee\u5f55 Test<\/li>\n<li>\u5728\u76ee\u5f55\u4e2d\u6dfb\u52a0\u00a0.vscode\u00a0\u76ee\u5f55\u3010\u6b64\u5904\u76ee\u5f55\u540d\u79f0\u56fa\u5b9a\u3011&#xff0c;\u6b64\u76ee\u5f55\u4e3a\u5b58\u653e\u5de5\u4f5c\u533a\u914d\u7f6e\u6587\u4ef6\u3010\u5b98\u65b9\u8bbe\u5b9a\u3011<\/li>\n<li>\n<p>\u5728\u62d3\u5c55\u00a0Remote Development\u00a0\u5728\u5de5\u4f5c\u533a\u4e2d\u542f\u7528&#xff0c;\u5728\u62d3\u5c55\u5305\u4e2d\u53ea\u4f7f\u7528\u00a0Remote &#8211; SSH<\/p>\n<ul>\n<li>Remote &#8211; Containers\u00a0\u662f\u7528\u4e8e\u5bb9\u5668\u7684<\/li>\n<li>Remote &#8211; WSL\u00a0\u662f\u7528\u4e8e Windows \u5b50\u7cfb\u7edf\u7684<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"669\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012118-6802fa8e96490.png\" width=\"884\" \/><\/p>\n<\/li>\n<\/ul>\n<h3 id=\"slide-5\">\u4f7f\u7528 vsCode \u8fde\u63a5 ESC \u670d\u52a1\u5668<\/h3>\n<li>\u70b9\u51fb\u8fdc\u7a0b\u8d44\u6e90\u7ba1\u7406\u5668\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"545\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012118-6802fa8ed6140.png\" width=\"743\" \/><\/p>\n<\/li>\n<li>\u9009\u62e9\u60a8\u5df2\u7ecf\u9002\u914d\u7684\u8d44\u6e90\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"217\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012119-6802fa8f0907b.png\" width=\"282\" \/><\/p>\n<\/li>\n<li>\u53ef\u80fd\u4f1a\u51fa\u73b0\u6b64\u95ee\u9898&#xff0c;\u70b9\u51fb\u62d3\u5c55&#xff0c;\u627e\u5230\u5bf9\u5e94\u62d3\u5c55\u5e76\u9009\u62e9\u5728\u6b64\u5de5\u4f5c\u533a\u542f\u7528\u5373\u53ef\u89e3\u51b3\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"958\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012119-6802fa8f24a17.png\" width=\"1286\" \/><\/p>\n<\/li>\n<li>\u9009\u62e9 ESC \u670d\u52a1\u5668\u7684\u7cfb\u7edf\u7c7b\u578b\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"281\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012119-6802fa8f9474c.png\" width=\"890\" \/><\/p>\n<\/li>\n<li>\u6253\u5f00\u6587\u4ef6&#xff0c;\u9009\u62e9\u9700\u6c42\u76ee\u5f55&#xff0c;\u70b9\u51fb\u786e\u5b9a\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"502\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012119-6802fa8fbcb6f.png\" width=\"960\" \/><\/p>\n<\/li>\n<li>\u5b8c\u6210\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"856\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012119-6802fa8ff0876.png\" width=\"1213\" \/><\/p>\n<\/li>\n<p>\u60a8\u53ef\u4ee5\u968f\u610f\u968f\u610f vsCode \u7f16\u8f91\u8fdc\u7a0b\u4e91\u7aef\u5185\u5bb9<\/p>\n<p>\u7ec8\u7aef\u53ef\u4ee5\u4f7f\u7528\u8fdc\u7a0b\u4e91\u7aef\u7684Shell<\/p>\n<p>\u70b9\u51fb\u7ec8\u7aef\u3010\u65b0\u5efa\u7ec8\u7aef\u3011&#xff0c;\u70b9\u51fb\u56fe\u4e2d\u7684\u5185\u5bb9\u5207\u6362\u7ec8\u7aef<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"992\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012120-6802fa90633af.png\" width=\"1271\" \/><\/p>\n<p>\u7ed3\u679c&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"image.png\" height=\"1080\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012120-6802fa90d8589.png\" width=\"1920\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb970\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u5728 Window \u4e2d\u6253\u5f00 PowerShell \u7a0b\u5e8f\u3010\u6b64\u5904\u4e0d\u77e5\u9053 PowerShell \u53ef\u4ee5\u767e\u5ea6\u4e00\u4e0b\uff0c\u4e0d\u505a\u8fc7\u591a\u4ecb\u7ecd\u3011\u5b66\u4e60\u8fc7 Linux \u7684\u5e94\u8be5\u5bf9 SSH \u5f88\u4e86\u89e3\uff0c\u4f7f\u7528\u5728\u6b64\u4e0d\u4ecb\u7ecd Linux \u4e0a\u7684\u4f7f\u7528\u3002\u8fd9\u662f ssh \u7684\u547d\u4ee4\u683c\u5f0f\uff0cssh \u662f\u57fa\u672c\u529f\u4e0d\u4f1a\u7684\u76f4\u63a5\u767e\u5ea6 ssh \u7528\u6cd5\u3002\u5c06\u516c\u94a5\u3010id_rsa.pub\u3011\u53d1\u9001\u5230 ECS\u670d\u52a1\u5668\u4e2d\u7cfb\u7edf\u7684\u7528\u6237\u3002\u8fdb\u5165PowerShell \u7a0b\u5e8f\u540e\uff0c\u4f7f\u7528ssh\u767b\u5f55ECS\u670d\u52a1\u5668\u3002\u70b9\u51fb\u7ec8\u7aef\u3010\u65b0\u5efa\u7ec8\u7aef\u3011\uff0c\u70b9\u51fb\u56fe\u4e2d\u7684\u5185\u5bb9\u5207\u6362\u7ec8\u7aef\u3002\u7ec8\u7aef\u53ef\u4ee5\u4f7f\u7528\u8fdc\u7a0b\u4e91\u7aef\u7684Shell\u3002\u8fdb\u5165 \u672c\u5730\u7528\u6237\u76ee\u5f55 \u7684\u3002_vscode\u5173\u8054ecs<\/p>\n","protected":false},"author":2,"featured_media":24064,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,77,76,1846],"topic":[],"class_list":["post-24075","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-ssh","tag-vscode","tag-1846"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9 - \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\/24075.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb970\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u5728 Window \u4e2d\u6253\u5f00 PowerShell \u7a0b\u5e8f\u3010\u6b64\u5904\u4e0d\u77e5\u9053 PowerShell \u53ef\u4ee5\u767e\u5ea6\u4e00\u4e0b\uff0c\u4e0d\u505a\u8fc7\u591a\u4ecb\u7ecd\u3011\u5b66\u4e60\u8fc7 Linux \u7684\u5e94\u8be5\u5bf9 SSH \u5f88\u4e86\u89e3\uff0c\u4f7f\u7528\u5728\u6b64\u4e0d\u4ecb\u7ecd Linux \u4e0a\u7684\u4f7f\u7528\u3002\u8fd9\u662f ssh \u7684\u547d\u4ee4\u683c\u5f0f\uff0cssh \u662f\u57fa\u672c\u529f\u4e0d\u4f1a\u7684\u76f4\u63a5\u767e\u5ea6 ssh \u7528\u6cd5\u3002\u5c06\u516c\u94a5\u3010id_rsa.pub\u3011\u53d1\u9001\u5230 ECS\u670d\u52a1\u5668\u4e2d\u7cfb\u7edf\u7684\u7528\u6237\u3002\u8fdb\u5165PowerShell \u7a0b\u5e8f\u540e\uff0c\u4f7f\u7528ssh\u767b\u5f55ECS\u670d\u52a1\u5668\u3002\u70b9\u51fb\u7ec8\u7aef\u3010\u65b0\u5efa\u7ec8\u7aef\u3011\uff0c\u70b9\u51fb\u56fe\u4e2d\u7684\u5185\u5bb9\u5207\u6362\u7ec8\u7aef\u3002\u7ec8\u7aef\u53ef\u4ee5\u4f7f\u7528\u8fdc\u7a0b\u4e91\u7aef\u7684Shell\u3002\u8fdb\u5165 \u672c\u5730\u7528\u6237\u76ee\u5f55 \u7684\u3002_vscode\u5173\u8054ecs\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24075.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-19T01:21:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012118-6802fa8e3eb8a.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\/24075.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24075.html\",\"name\":\"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T01:21:22+00:00\",\"dateModified\":\"2025-04-19T01:21:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24075.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24075.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24075.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9\"}]},{\"@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":"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9 - \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\/24075.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb970\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u5728 Window \u4e2d\u6253\u5f00 PowerShell \u7a0b\u5e8f\u3010\u6b64\u5904\u4e0d\u77e5\u9053 PowerShell \u53ef\u4ee5\u767e\u5ea6\u4e00\u4e0b\uff0c\u4e0d\u505a\u8fc7\u591a\u4ecb\u7ecd\u3011\u5b66\u4e60\u8fc7 Linux \u7684\u5e94\u8be5\u5bf9 SSH \u5f88\u4e86\u89e3\uff0c\u4f7f\u7528\u5728\u6b64\u4e0d\u4ecb\u7ecd Linux \u4e0a\u7684\u4f7f\u7528\u3002\u8fd9\u662f ssh \u7684\u547d\u4ee4\u683c\u5f0f\uff0cssh \u662f\u57fa\u672c\u529f\u4e0d\u4f1a\u7684\u76f4\u63a5\u767e\u5ea6 ssh \u7528\u6cd5\u3002\u5c06\u516c\u94a5\u3010id_rsa.pub\u3011\u53d1\u9001\u5230 ECS\u670d\u52a1\u5668\u4e2d\u7cfb\u7edf\u7684\u7528\u6237\u3002\u8fdb\u5165PowerShell \u7a0b\u5e8f\u540e\uff0c\u4f7f\u7528ssh\u767b\u5f55ECS\u670d\u52a1\u5668\u3002\u70b9\u51fb\u7ec8\u7aef\u3010\u65b0\u5efa\u7ec8\u7aef\u3011\uff0c\u70b9\u51fb\u56fe\u4e2d\u7684\u5185\u5bb9\u5207\u6362\u7ec8\u7aef\u3002\u7ec8\u7aef\u53ef\u4ee5\u4f7f\u7528\u8fdc\u7a0b\u4e91\u7aef\u7684Shell\u3002\u8fdb\u5165 \u672c\u5730\u7528\u6237\u76ee\u5f55 \u7684\u3002_vscode\u5173\u8054ecs","og_url":"https:\/\/www.wsisp.com\/helps\/24075.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T01:21:22+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419012118-6802fa8e3eb8a.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\/24075.html","url":"https:\/\/www.wsisp.com\/helps\/24075.html","name":"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T01:21:22+00:00","dateModified":"2025-04-19T01:21:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24075.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24075.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24075.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528 ECS\u670d\u52a1\u5668 \u548c vsCode \u642d\u5efa\u8fdc\u7a0b\u5f00\u53d1\u7ad9"}]},{"@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\/24075","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=24075"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24075\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/24064"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24075"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}