{"componentChunkName":"component---src-templates-acg-portal-new-template-tsx","path":"/3mru1biqd","result":{"data":{"markdownRemark":{"html":"<p>本文介绍如何VS Code中使用ssh服务连接平台开发机，完成远程代码开发，包含命令获取、插件安装、连接配置、工作区使用全流程操作步骤。</p>\n<h2 id=\"前提条件\"><a href=\"#%E5%89%8D%E6%8F%90%E6%9D%A1%E4%BB%B6\" aria-label=\"前提条件 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>前提条件</h2>\n<ul>\n<li>已完成开发机创建，开发机状态为运行中；</li>\n<li>本地电脑已安装 VS Code 客户端。</li>\n</ul>\n<h2 id=\"步骤一：获取开发机登录命令\"><a href=\"#%E6%AD%A5%E9%AA%A4%E4%B8%80%EF%BC%9A%E8%8E%B7%E5%8F%96%E5%BC%80%E5%8F%91%E6%9C%BA%E7%99%BB%E5%BD%95%E5%91%BD%E4%BB%A4\" aria-label=\"步骤一：获取开发机登录命令 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>步骤一：获取开发机登录命令</h2>\n<p>登录百度胜算控制台，进入开发机列表页面，单击目标开发机右侧的<strong>登录</strong>按钮，单击复制页面展示的开发机远程登录命令。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103105.808_24c1cee.png\" alt=\"image - 2026-07-21T103105.808.png\"></p>\n<h2 id=\"步骤二：安装vs-code插件\"><a href=\"#%E6%AD%A5%E9%AA%A4%E4%BA%8C%EF%BC%9A%E5%AE%89%E8%A3%85vs-code%E6%8F%92%E4%BB%B6\" aria-label=\"步骤二：安装vs code插件 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>步骤二：安装VS Code插件</h2>\n<ol>\n<li>打开本地VS Code软件；</li>\n<li>切换至左侧<strong>扩展</strong>市场，搜索并安装<strong>Remote-SSH</strong>远程连接插件；</li>\n</ol>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103128.511_451a933.png\" alt=\"image - 2026-07-21T103128.511.png\"></p>\n<h2 id=\"步骤三：连接开发机\"><a href=\"#%E6%AD%A5%E9%AA%A4%E4%B8%89%EF%BC%9A%E8%BF%9E%E6%8E%A5%E5%BC%80%E5%8F%91%E6%9C%BA\" aria-label=\"步骤三：连接开发机 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>步骤三：连接开发机</h2>\n<ol>\n<li>安装完成插件后，单击左侧侧边栏远程资源图标，在下拉列表选择<strong>添加新的 SSH 主机...</strong>。</li>\n</ol>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103208.359_b41e624.png\" alt=\"image - 2026-07-21T103208.359.png\"></p>\n<ol start=\"2\">\n<li>在弹出的输入框中，粘贴从平台开发机页面复制的完整 SSH 连接命令，按下回车键确认。</li>\n</ol>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103227.338_217d2cc.png\" alt=\"image - 2026-07-21T103227.338.png\"></p>\n<ol start=\"3\">\n<li>选择配置文件。</li>\n</ol>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103242.989_892af01.png\" alt=\"image - 2026-07-21T103242.989.png\"></p>\n<ol start=\"4\">\n<li>然后右下角，单击<strong>连接</strong>按钮。</li>\n</ol>\n<p><img src=\"https://rte.weiyun.baidu.com/wiki/attach/image/api/imageDownloadAddress?attachId=153d7862f1b5478ebe3d43abc34d70ed&#x26;docGuid=cTzj5odUQWRW-_\"></p>\n<h2 id=\"步骤四：确认连接成功\"><a href=\"#%E6%AD%A5%E9%AA%A4%E5%9B%9B%EF%BC%9A%E7%A1%AE%E8%AE%A4%E8%BF%9E%E6%8E%A5%E6%88%90%E5%8A%9F\" aria-label=\"步骤四：确认连接成功 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>步骤四：确认连接成功</h2>\n<p>连接后进入如下界面表示连接成功；第一次连接比较慢，需耐心等待。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103319.157_b2678ec.png\" alt=\"image - 2026-07-21T103319.157.png\"></p>\n<p>工作区选择workspace 目录即可。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/bce-doc/DataBuilder/image%20-%202026-07-21T103334.343_6bd6ea1.png\" alt=\"image - 2026-07-21T103334.343.png\"></p>","fields":{"slug":"3mru1biqd","title":"VS Code中使用ssh服务连接开发机","date":"2026-07-21","extractedHeadings":[]},"headings":[{"value":"前提条件","depth":2},{"value":"步骤一：获取开发机登录命令","depth":2},{"value":"步骤二：安装VS Code插件","depth":2},{"value":"步骤三：连接开发机","depth":2},{"value":"步骤四：确认连接成功","depth":2}]}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"3mru1biqd","prev":{"id":"8mr4nvgv6","name":"Spark任务开发手册","path":"8mr4nvgv6","filePath":"操作指南/开发机/用户手册/Spark任务开发手册.md","seo":null,"parentIds":["4m99rj1v8","Bmr4o6vi0","9mr4ojghl"],"parents":[{"id":"4m99rj1v8","documentId":"fb25345f-1c06-4818-bfae-d167c305aa86","name":"操作指南","repoName":"DataBuilder","filePath":"操作指南","disabled":false,"path":"4m99rj1v8","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":null},{"id":"Bmr4o6vi0","documentId":"83062cfa-7426-4166-b672-6be1dc13f7e4","name":"开发机","repoName":"DataBuilder","filePath":"操作指南/开发机","disabled":false,"path":"Bmr4o6vi0","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""},{"id":"9mr4ojghl","documentId":"fd9c910a-5d41-4540-b60a-8c77eef72566","name":"用户手册","repoName":"DataBuilder","filePath":"操作指南/开发机/用户手册","disabled":false,"path":"9mr4ojghl","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""}]},"next":{"id":"2mru1kpwy","name":"Ray任务开发手册","path":"2mru1kpwy","filePath":"操作指南/开发机/用户手册/Ray任务开发手册.md","seo":null,"parentIds":["4m99rj1v8","Bmr4o6vi0","9mr4ojghl"],"parents":[{"id":"4m99rj1v8","documentId":"fb25345f-1c06-4818-bfae-d167c305aa86","name":"操作指南","repoName":"DataBuilder","filePath":"操作指南","disabled":false,"path":"4m99rj1v8","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":null},{"id":"Bmr4o6vi0","documentId":"83062cfa-7426-4166-b672-6be1dc13f7e4","name":"开发机","repoName":"DataBuilder","filePath":"操作指南/开发机","disabled":false,"path":"Bmr4o6vi0","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""},{"id":"9mr4ojghl","documentId":"fd9c910a-5d41-4540-b60a-8c77eef72566","name":"用户手册","repoName":"DataBuilder","filePath":"操作指南/开发机/用户手册","disabled":false,"path":"9mr4ojghl","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""}]},"parents":[{"id":"4m99rj1v8","documentId":"fb25345f-1c06-4818-bfae-d167c305aa86","name":"操作指南","repoName":"DataBuilder","filePath":"操作指南","disabled":false,"path":"4m99rj1v8","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":null},{"id":"Bmr4o6vi0","documentId":"83062cfa-7426-4166-b672-6be1dc13f7e4","name":"开发机","repoName":"DataBuilder","filePath":"操作指南/开发机","disabled":false,"path":"Bmr4o6vi0","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""},{"id":"9mr4ojghl","documentId":"fd9c910a-5d41-4540-b60a-8c77eef72566","name":"用户手册","repoName":"DataBuilder","filePath":"操作指南/开发机/用户手册","disabled":false,"path":"9mr4ojghl","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":""}],"specificSeo":null}}}