windows通过ssh连接ubuntu远程docker cotainer报错

报错内容:

Error running command remote-containers.attachToRunningContainerFromViewlet: Shell server terminated (code: 255, signal: null)  XSL   ʽ(  ) ļ     Ч    node:child_process:925     throw err;     ^  Error: Command failed: wmic process where (commandline like "%ssh-askpass.bat%") get processid,parentprocessid /format:"%WINDIR%\System32\wbem\en-us\csv" XSL   ʽ(  ) ļ     Ч          at checkExecSyncError (node:child_process:848:11)     at Object.execSync (node:child_process:922:15)     at Object. (node:electron/js2c/asar_bundle:5:12704)     at Object. (c:\Users\GW00322633\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\common\sshAskpass.js:5:808)     at Module._compile (node:internal/modules/cjs/loader:1165:14)     at Module._extensions..js (node:internal/modules/cjs/loader:1220:10)     at Module.load (node:internal/modules/cjs/loader:1035:32)     at Module._load (node:internal/modules/cjs/loader:876:12)     at c._load (node:electron/js2c/asar_bundle:5:13343)     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {   status: 44210,   signal: null,   output: [     null,     Buffer(0) [Uint8Array] [],     Buffer(27) [Uint8Array] [        88,  83,  76,  32, 184, 241, 202,       189,  40, 187, 242,  41, 206, 196,       188, 254, 195, 251, 206, 222, 208,       167, 161, 163,  13,  13,  10     ]   ],   pid: 16340,   stdout: Buffer(0) [Uint8Array] [],   stderr: Buffer(27) [Uint8Array] [      88,  83,  76,  32, 184, 241, 202,     189,  40, 187, 242,  41, 206, 196,     188, 254, 195, 251, 206, 222, 208,     167, 161, 163,  13,  13,  10   ] } Permission denied, please try again. XSL   ʽ(  ) ļ     Ч    node:child_process:925     throw err;     ^  Error: Command failed: wmic process where (commandline like "%ssh-askpass.bat%") get processid,parentprocessid /format:"%WINDIR%\System32\wbem\en-us\csv" XSL   ʽ(  ) ļ     Ч          at checkExecSyncError (node:child_process:848:11)     at Object.execSync (node:child_process:922:15)     at Object. (node

解决方案:

Error while connecting docker container hosted on remote linux. · Issue #7507 · microsoft/vscode-remote-release · GitHub

windows通过ssh连接ubuntu远程docker cotainer报错_第1张图片

2. vscode连不上ubuntu server 一直等待连不上

vscode ssh远程连接失败问题及解决_Charles Ren的博客-CSDN博客_vscode连不上远程服务器

你可能感兴趣的:(windows,ssh,ubuntu)