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

Failed to pars remote port from sever output #4284

Closed
adicoingitgub opened this issue Jan 10, 2021 · 3 comments
Closed

Failed to pars remote port from sever output #4284

adicoingitgub opened this issue Jan 10, 2021 · 3 comments
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@adicoingitgub
Copy link

adicoingitgub commented Jan 10, 2021

Hello,
This bug was opened already (#3301) but no solution that works for me was offered.
Trying to start SSH connection and get the following error:

image

[09:21:51.621] Log Level: 2
[09:21:51.627] remote-ssh@0.61.0
[09:21:51.627] win32 x64
[09:21:51.628] SSH Resolver called for "ssh-remote+[stromboli.tau.ac.il]", attempt 1
[09:21:51.628] "remote.SSH.useLocalServer": false
[09:21:51.628] "remote.SSH.showLoginTerminal": true
[09:21:51.628] "remote.SSH.remotePlatform": {}
[09:21:51.628] "remote.SSH.sshPath": undefined
[09:21:51.628] "remote.SSH.sshConfigurationFile": C:\Users\YanivA01.ssh\config
[09:21:51.629] "remote.SSH.useFlock": true
[09:21:51.629] "remote.SSH.lockfilesInTmp": false
[09:21:51.629] "remote.SSH.localServerDownload": auto
[09:21:51.629] "remote.SSH.remoteServerListenOnSocket": true
[09:21:51.629] "remote.SSH.showLoginTerminal": true
[09:21:51.629] "remote.SSH.maxReconnectionAttempts": 9007199254740991
[09:21:51.629] SSH Resolver called for host: [stromboli.tau.ac.il]
[09:21:51.629] Setting up SSH remote "[stromboli.tau.ac.il]"
[09:21:51.653] Using commit id "d2e414d9e4239a252d1ab117bd7067f125afd80a" and quality "stable" for server
[09:21:51.656] Install and start server if needed
[09:21:52.459] Checking ssh with "ssh -V"
[09:21:52.507] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5

[09:21:52.511] Using SSH config file "C:\Users\YanivA01.ssh\config"
[09:21:52.512] Running script with connection command: ssh -T -D 65502 -F "C:\Users\YanivA01.ssh\config" "[stromboli.tau.ac.il]" bash
[09:21:52.516] Terminal shell path: C:\Windows\System32\cmd.exe
[09:21:52.631] > ssh: Could not resolve hostname [stromboli.tau.ac.il]: No such host is known.

�]0;C:\Windows\System32\cmd.exe�
[09:21:52.632] Got some output, clearing connection timeout
[09:21:52.642] > The process tried to write to a nonexistent pipe.
[09:21:52.963] "install" terminal command done
[09:21:52.963] Install terminal quit with output: �]0;C:\Windows\System32\cmd.exe�The process tried to write to a nonexistent pipe.
[09:21:52.963] Received install output: �]0;C:\Windows\System32\cmd.exe�The process tried to write to a nonexistent pipe.
[09:21:52.968] Resolver error: Error: The process tried to write to a nonexistent pipe
at Function.Offline (c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:1:82376)
at c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:1:77835
at Object.t.handleInstallOutput (c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:1:78213)
at I (c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:127:107056)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:127:104971
at async Object.t.withShowDetailsEvent (c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:127:110308)
at async Object.t.resolve (c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:127:108372)
at async c:\Users\YanivA01.vscode\extensions\ms-vscode-remote.remote-ssh-0.61.0\out\extension.js:127:129627
[09:21:52.971] ------

image

Also, the connection works if typing adirivkac@stromboli.tau.ac.il at the terminal....
Any ideas?
Thank you so much!

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Jan 10, 2021
@roblourens
Copy link
Member

Somehow you end up with your host in brackets ssh: Could not resolve hostname [stromboli.tau.ac.il]: No such host is known please check your ssh config

@roblourens roblourens added the info-needed Issue requires more information from poster label Jan 11, 2021
@github-actions
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@faustvault
Copy link

Possible workaround,

I had a similar issue, I was unable to do a ProxyJump to a container on a remote machine (failed connections from windows 10 machine, the ssh-config in question, with minor changes for Windows was previously tested config on Linux & Mac machines, worked perfectly)

My console output is pretty much the same as stated in #4284 by @adicoingitgub so I would dig into the ssh config

So, I found this answer on serverfault by @johnymachine (thanks much ♥) with a reference to this bug on Win32-OpenSSH (issue 1185)

Excerpt:

... the fix is to use a full path. So this is the correct line in the .ssh/config:
ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe jumphost netcat -w 120 %h %p
For further development see this issue: #18

So I changed ProxyJump myownjumphost to ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe -W %h:%p myownjumphost, worked perfectly. Hope it helps a bit.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants