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

Can't connect to host while with command line ssh I can #1327

Closed
erasmus7 opened this issue Aug 30, 2019 · 4 comments
Closed

Can't connect to host while with command line ssh I can #1327

erasmus7 opened this issue Aug 30, 2019 · 4 comments
Labels
info-needed Issue requires more information from poster

Comments

@erasmus7
Copy link

erasmus7 commented Aug 30, 2019

While being able to connect with Putty or the c:\windows\system32\Openssh\ssh.exe
with this extension I can't, and it is consistent through several hosts.

- Install terminal quit with output: sh: bash: not found:
Output reports:
[04:54:52.606] remote-ssh@0.45.6
[04:54:52.607] win32 ia32
[04:54:52.608] SSH Resolver called for "ssh-remote+qnap", attempt 1
[04:54:52.608] SSH Resolver called for host: qnap
[04:54:52.608] Setting up SSH remote "qnap"
[04:54:52.633] Using commit id "f06011ac164ae4dc8e753a3fe7f9549844d15e35" and quality "stable" for server
[04:54:52.635] Testing ssh with c:\Windows\System32\OpenSSH\ssh.exe -V
[04:54:52.638] Got error from ssh: spawn c:\Windows\System32\OpenSSH\ssh.exe ENOENT
[04:54:52.638] The specified path c:\Windows\System32\OpenSSH\ssh.exe is not a valid SSH binary
[04:54:52.638] Testing ssh with C:\WINDOWS\Sysnative\OpenSSH\ssh.exe -V
[04:54:52.721] ssh exited with code: 0
[04:54:52.721] Got stderr from ssh: OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[04:54:52.721] Using SSH config file "C:\Users\jrm\.ssh\config"
[04:54:52.722] Running script with connection command: "C:\WINDOWS\Sysnative\OpenSSH\ssh.exe" -o ClearAllForwardings=true -F C:\Users\jrm\.ssh\config qnap bash
[04:54:52.724] Install and start server if needed
[04:54:52.817] > 
[04:54:52.818] Got some output, clearing connection timeout
[04:54:53.302] > �]0;C:\WINDOWS\SYSTEM32\cmd.exe�
[04:54:53.321] > 
[04:54:53.461] > Joaquim@222.222.222.11's password: 
[04:54:57.489] "install" wrote data to terminal: "*********"
[04:54:57.496] > 
> 
[04:54:57.594] > Running remote connection script
> 
[04:54:57.605] > Acquiring lock on /share/homes/Joaquim/.vscode-server/bin/f06011ac164ae4dc8e753a
> 3fe7f9549844d15e35/vscode-remote-lock.f06011ac164ae4dc8e753a3fe7f9549844d15e35  
> Installation already in progress...
> 5c3dcb48-ed76-4255-a8b5-8b49801475d3##24##
> bash: line 48: flock: command not found
> bash: line 48: flock: command not found
> bash: line 48: flock: command not found
> 
[04:54:57.605] Received install output: 5c3dcb48-ed76-4255-a8b5-8b49801475d3##24##
[04:54:57.606] Server installation process already in progress - waiting and retrying 1
[04:54:57.899] "install" terminal command done
[04:54:57.900] Install terminal quit with output: 
[04:54:58.654] > 
[04:54:58.655] Got some output, clearing connection timeout
[04:54:59.143] > �]0;C:\WINDOWS\SYSTEM32\cmd.exe�
[04:54:59.179] > 
> 
>  
[04:54:59.202] > 
> 
> 
[04:54:59.371] > Joaquim@222.222.222.11's password: 
[04:55:03.386] "install" terminal command canceled
[04:55:03.386] Install terminal quit with output: 
[04:55:03.386] Received install output: 
[04:55:03.386] Failed to parse remote port from server output: 
[04:55:03.387] 
[04:55:03.387] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"UnparsableOutput"},"measures":{"resolveAttempts":1,"retries":2}}
[04:55:03.387] ------


- Install terminal quit with output: sh: bash: not found:

What am I doing wrong? I see that in the remote shells there is no bash: installed.
I wonder if this line is configurable so I can remove the bash command.

@erasmus7
Copy link
Author

Possible double of #1232 and #1137

@roblourens
Copy link
Member

The error is

bash: line 48: flock: command not found

What is your remote os? You need to have flock available.

@roblourens roblourens added the info-needed Issue requires more information from poster label Sep 1, 2019
@erasmus7
Copy link
Author

erasmus7 commented Sep 2, 2019

You are right, it's not there.
They are VMware ESXi shell, and Qnap OS.
Sorry not to read better the log. I will post bugs only Monday or Tuesday.

@erasmus7 erasmus7 closed this as completed Sep 2, 2019
@erasmus7
Copy link
Author

erasmus7 commented Sep 2, 2019

You are right, it's not there.
They are VMware ESXi shell, and Qnap OS.
Sorry not to read better the log. I will post bugs only Monday or Tuesday.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 17, 2019
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
Projects
None yet
Development

No branches or pull requests

2 participants