Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect from Widows to Linux server #1218

Closed
vinser52 opened this issue Aug 21, 2019 · 1 comment
Closed

Cannot connect from Widows to Linux server #1218

vinser52 opened this issue Aug 21, 2019 · 1 comment
Labels
ssh Issue in vscode-remote SSH

Comments

@vinser52
Copy link

vinser52 commented Aug 21, 2019

Steps to Reproduce:

  1. I have the following entry in ssh config:
    Host my_machine(21.120)
    HostName 10.125.21.120
    User svinogra
    IdentityFile C:\Users\svinogra.ssh\id_rsa-remote-ssh
  2. When I try to connect from VS code I got the following error:
[11:42:36.590] [email protected]
[11:42:36.590] win32 x64
[11:42:36.591] SSH Resolver called for "ssh-remote+my_machine(21.120)", attempt 1
[11:42:36.591] SSH Resolver called for host: my_machine(21.120)
[11:42:36.591] Setting up SSH remote "my_machine(21.120)"
[11:42:36.630] Using commit id "f06011ac164ae4dc8e753a3fe7f9549844d15e35" and quality "stable" for server
[11:42:36.635] Testing ssh with ssh -V
[11:42:36.645] Got error from ssh: spawn ssh ENOENT
[11:42:36.645] Testing ssh with C:\WINDOWS\System32\OpenSSH\ssh.exe -V
[11:42:36.650] Got error from ssh: spawn C:\WINDOWS\System32\OpenSSH\ssh.exe ENOENT
[11:42:36.650] Testing ssh with C:\Program Files\Git\usr\bin\ssh.exe -V
[11:42:36.966] ssh exited with code: 0
[11:42:36.966] Got stderr from ssh: OpenSSH_8.0p1, OpenSSL 1.1.1c  28 May 2019
[11:42:36.967] Running script with connection command: "C:\Program Files\Git\usr\bin\ssh.exe" -o ClearAllForwardings=true my_machine(21.120) bash
[11:42:36.969] Install and start server if needed
[11:42:37.500] > 
[11:42:37.500] Got some output, clearing connection timeout
[11:42:37.594] > bash) was unexpected at this time.
> 
[11:42:38.019] "install" terminal command done
[11:42:38.019] Install terminal quit with output: bash) was unexpected at this time.
[11:42:38.019] Received install output: bash) was unexpected at this time.
[11:42:38.020] Failed to parse remote port from server output: bash) was unexpected at this time.
[11:42:38.020] 
[11:42:38.020] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"UnparsableOutput"},"measures":{"resolveAttempts":1,"retries":1}}
[11:42:38.021] ------

I did some investigation and tried to run the following command from the Windows command line:
C:\Users\svinogra>"C:\Program Files\Git\usr\bin\ssh.exe" -o ClearAllForwardings=true my_machine(21.120)

@aeschli aeschli added the ssh Issue in vscode-remote SSH label Aug 21, 2019
@roblourens
Copy link
Member

This is due to the parentheses in your host name. It's fixed in the nightly version of this extension and the fix will come to the stable version soon.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants