Closed BenjaKemp closed 2 years ago
Having same issue: Version: 1.56.2 (user setup) Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Windows_NT x64 10.0.16299
Seems potentially related to/same error as https://github.com/microsoft/vscode-remote-release/issues/5099.
Having the same Issue here, but a little different. I am having two different Windows 10 machines which are set up (as far as I know) identically. With one system I can use remote-ssh as usually. And with the other system I get the the error "failed to parse remote port from server output" (see below for details). I've tried it with the OpenSSH and the SSH, which comes with Git For Windows, also tried using Passphrase and Public Key. Always the same.
Both system use VSCode 1.56.2 Node.js: 14:16.0 OS: Windows_NT x64 19042
I've tried to kill the server on the host system and removed the .vscode directory. Still the same. With one system it always works and with the other it never works.
Here is the output when it does not work:
[09:49:54.746] Log Level: 1
[09:49:54.751] remote-ssh@0.65.4
[09:49:54.751] win32 x64
[09:49:54.752] SSH Resolver called for "ssh-remote+auxo", attempt 1
[09:49:54.752] "remote.SSH.useLocalServer": false
[09:49:54.752] "remote.SSH.showLoginTerminal": false
[09:49:54.752] "remote.SSH.remotePlatform": {}
[09:49:54.753] "remote.SSH.path": C:\Program Files\Git\usr\bin
[09:49:54.753] "remote.SSH.configFile": undefined
[09:49:54.753] "remote.SSH.useFlock": true
[09:49:54.753] "remote.SSH.lockfilesInTmp": false
[09:49:54.753] "remote.SSH.localServerDownload": always
[09:49:54.753] "remote.SSH.remoteServerListenOnSocket": true
[09:49:54.753] "remote.SSH.showLoginTerminal": false
[09:49:54.753] "remote.SSH.defaultExtensions": []
[09:49:54.753] "remote.SSH.loglevel": 1
[09:49:54.754] SSH Resolver called for host: auxo
[09:49:54.754] Setting up SSH remote "auxo"
[09:49:54.774] Using commit id "054a9295330880ed74ceaedda236253b4f39a335" and quality "stable" for server
[09:49:54.778] Install and start server if needed
[09:49:56.099] Checking ssh with "C:\Program Files\Git\usr\bin -V"
[09:49:56.103] Got error from ssh: spawn C:\Program Files\Git\usr\bin ENOENT
[09:49:56.103] The specified path C:\Program Files\Git\usr\bin is not a valid SSH binary
[09:49:56.103] Checking ssh with "ssh -V"
[09:49:56.155] > OpenSSH_for_Win
[09:49:56.155] > dows_8.1p1, LibreSSL 3.0.2
[09:49:56.159] Running script with connection command: ssh -T -o ClearAllForwardings=true auxo bash
[09:49:56.163] Terminal shell path: C:\windows\System32\cmd.exe
[09:49:56.363] "install" terminal received data: "[2J[m[HZugriff verweigert
]0;C:\windows\System32\cmd.exe [?25h"
[09:49:56.363] Got some output, clearing connection timeout
[09:49:56.734] "install" terminal received data: "
[25lAUXO - ARGES Production System[42X
[72X
WARNING: Unauthorized access to this system is forbidden and will be
prosecuted by law. By accessing this system, you agree that your actions
may be monitored if unauthorized usage is suspected.[20X[10;1H[?25h"
[09:49:56.775] "install" terminal received data: "Password:"
[09:49:56.775] Showing password prompt
[09:50:05.411] Got password response
[09:50:05.411] "install" wrote data to terminal: "****"
[09:50:05.430] "install" terminal received data: ""
[09:50:05.583] "install" terminal received data: "stty: standard input: Inappropriate ioctl for device"
[09:50:05.592] "install" terminal received data: "stty: standard input: Inappropriate ioctl for device"
[09:50:05.905] "install" terminal command done
[09:50:05.906] Install terminal quit with output: stty: standard input: Inappropriate ioctl for device
[09:50:05.906] Received install output: stty: standard input: Inappropriate ioctl for device
[09:50:05.906] Stopped parsing output early. Remaining text: stty: standard input: Inappropriate ioctl for device
[09:50:05.907] Failed to parse remote port from server output
[09:50:05.907] Resolver error: Error:
at Function.Create (c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:1:64641)
at Object.t.handleInstallOutput (c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:1:63284)
at Object.t.tryInstall (c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:1:413984)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:1:294518
at async Object.t.withShowDetailsEvent (c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:1:405329)
at async Object.t.resolve (c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:1:295639)
at async c:\Users\michael.roehrl.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.4\out\extension.js:127:110530
[09:50:05.910] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"1","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"0","localServer":"0","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"UnparsableOutput","exitCodeLabel":""},"measures":{"resolveAttempts":1,"retries":1,"timing.totalResolveTime":11156,"timing.preSshTime":1412,"timing.scriptTime":9743}}
[09:50:05.913] ------
Same problem here. The problem appeared when I upgrade VSC.
This solution works for me:
Then a good solution that can work is: to connect to your server through terminal (vscode terminal, gnome-terminal, whatever)! Then go and remove /Home/
Try to connect after it! At the attempt the server will be re-installed completly all anew! And good chances it will works! (I did that and it worked! So whatever that was going wrong on the vscode-server! you start all over! And the state or whatever go a new and problem resolved!
However you loose things, config, meta data, ... (you start a new!) In my case it didn't matter!
One can explore the .vscode-server structure, and elements! And you can save some part that you bring up later! (I didn't check!) (may do later)! It's an option!
From: https://stackoverflow.com/questions/64034813/vs-code-remote-ssh-connection-not-working
This solution works for me: Then a good solution that can work is: to connect to your server through terminal (vscode terminal, gnome-terminal, whatever)! Then go and remove /Home//.vscode-server
I've tried that already. Unfortunately it also does not work. Neither with VSCode or the VSCode-Insiders.
Faced the same issue. Resolved it by changing the login shell in the remote server to /bin/bash. This change can be done easily using the chsh command in the remote server. By default, when an account is created in Ubuntu, the shell is set to /bin/sh, which cannot understand and run the advanced syntax of bash language (which your vscode is probably using).
sh
should work... @BenjaKemp is this an issue? What is your default shell on the remote?
@srivastava-s had the correct answer. thanks for playing. Goodnight X
VS Cde Version: 1.56.2 (Universal) Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Darwin x64 20.3.0
trying to connect to remote server using ssh. It recognises that the password is correct but won't allow me to connect. There are no resources that i've found anywhere that tackle the same issue. All ideas welcomed