I am trying to use the Remote-SSH VS Code extension to run code remotely on another Windows 10 machine. I am able to initiate an Open SSH connection from Powershell using ssh username@hostname, but when I attempt to connect to the host I get an error.
The VS Code output shows:
[17:28:02.283] "install" terminal command done [17:28:02.284] Install
terminal quit with output: Host key verification failed.
[17:28:02.284] Received install output: Host key verification failed.
[17:28:02.285] Stopped parsing output early. Remaining text: Host key
verification failed. [17:28:02.286] Failed to parse remote port from
server output [17:28:02.296] Resolver error: Error: at
Function.Create
(c:Usersspector.vscodeextensionsms-vscode-remote.remote-ssh-
0.63.0outextension.js:1:64027) at Object.t.handleInstallOutput (c:Usersspector.vscodeextensionsms-vscode-remote.remote-ssh-
0.63.0outextension.js:1:62766) at k (c:Usersspector.vscodeextensionsms-vscode-remote.remote-ssh-
0.63.0outextension.js:1:312915) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async
c:Usersspector.vscodeextensionsms-vscode-remote.remote-ssh-
0.63.0outextension.js:1:310801 at async Object.t.withShowDetailsEvent
(c:Usersspector.vscodeextensionsms-vscode-
remote.remote-ssh-0.63.0outextension.js:1:405790) at async
Object.t.resolve
(c:Usersspector.vscodeextensionsms-vscode-remote.remote-ssh-
0.63.0outextension.js:1:314454) at async c:Usersspector.vscodeextensionsms-vscode-remote.remote-ssh-
0.63.0outextension.js:127:110333 [17:28:02.300] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"0","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"UnparsableOutput","exitCodeLabel":""},"measures":{"resolveAttempts":1,"retries":1,"timing.totalResolveTime":1757,"timing.preSshTime":313,"timing.scriptTime":1440}}
[17:28:02.305] ------
Any ideas about how to fix this would be much appreciated!
question from:
https://stackoverflow.com/questions/65946252/unable-to-connect-to-windows-10-machine-using-remote-ssl-in-visual-studio-code 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…