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

Remote session fails to connect with ProxyJump #386

Closed
bymet opened this issue May 20, 2019 · 11 comments
Closed

Remote session fails to connect with ProxyJump #386

bymet opened this issue May 20, 2019 · 11 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@bymet
Copy link

bymet commented May 20, 2019

Issue Type: Bug

  1. Add ssh config file with next structure
Host jump
  User <jump-user-name>
  HostName <jump-ip-address>

Host server
  User <user-name>
  HostName <ip-address>
  ProxyJump jump
  1. Select server throught VSCode-Inseder UI
  2. Get next error message
Can't connect to server: unreachable or not Linux x86_64 (posix_spawn: No such file or directory)

Extension version: 0.37.0
VS Code version: Code - Insiders 1.35.0-insider (a5536b8f5a16a10d859f3dec1e59701671bf069e, 2019-05-20T05:17:36.269Z)
OS version: Windows_NT x64 10.0.17763
Remote OS version: Linux x64 4.4.0-17763-Microsoft

System Info
Item Value
CPUs Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz (4 x 3912)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.89GB (5.15GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL
OS Linux x64 4.4.0-17763-Microsoft
CPUs Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz (4 x 3900)
Memory (System) 15.89GB (5.15GB free)
VM 0%
@egamma egamma added the ssh Issue in vscode-remote SSH label May 21, 2019
@roblourens
Copy link
Member

Can you share the log from the "Remote - SSH" output channel?

@roblourens roblourens added the info-needed Issue requires more information from poster label May 21, 2019
@bymet
Copy link
Author

bymet commented May 22, 2019

Confirming that mobyedge-server is a valid reachable host
Running type "C:\Users\STANIS~1.TES\AppData\Local\Temp\vscode-linux-multi-line-command-mobyedge-server.sh" | ssh  mobyedge-server to confirm the host platform
> 
> Pseudo-terminal will not be allocated because stdin is not a terminal.
> CreateProcessW failed error:2
> posix_spawn: No such file or directory
> 
"uname" terminal command done
mobyedge-server: unreachable or not Linux x86_64. (posix_spawn: No such file or directory)

@bymet
Copy link
Author

bymet commented May 22, 2019

Also forgot to mention that same ssh configuration works fine inside WSL

@roblourens
Copy link
Member

And if you type ssh mobyedge-server in a command prompt, that works? Is it possible that ssh is not on your path in vscode?

@bymet
Copy link
Author

bymet commented May 23, 2019

It works fine inside bash/WSL, but fails inside powershell/cmd with next message

CreateProcessW failed error:2
posix_spawn: No such file or directory

@bymet
Copy link
Author

bymet commented May 23, 2019

Looks like some thing wrong with ssh itself on windows

@roblourens
Copy link
Member

Oh, it sounds like linux ssh is on your path, not windows ssh.

@roblourens
Copy link
Member

I think this is a duplicate of #359 then.

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label May 23, 2019
@pd93
Copy link

pd93 commented May 30, 2019

@roblourens. I don't think this is a dupl. of #359. This happens to me when the only installed version of OpenSSH is the Powershell one.

I'm fairly sure it is however, a dupl. of #18. I would appreciate if you could take a look at the comments over there. I believe this may be caused by PowerShell/Win32-OpenSSH#1172, which has been open for quite some time. This seems like a pretty big limitation of SSH in Windows.

@bymet
Copy link
Author

bymet commented May 30, 2019

@roblourens, Recently I installed next version of ssh. Right now everything works fine. So yes, looks like it's issue with ssh itself.

@roblourens
Copy link
Member

Thanks for bringing PowerShell/Win32-OpenSSH#1172 to my attention. That does sound like a serious issue.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

4 participants