Vscode-remote-release: "ssh: command not found" when connecting to host

Created on 12 Sep 2019  路  1Comment  路  Source: microsoft/vscode-remote-release

Issue Type: Bug

I got "ssh: command not found" when I was running "Remote: Connect to Host" on my mac.
I can run ssh command and connect to my hosts correctly via Terminal.

My system is macOS 10.15 (19A558d).
Remote-SSH @ 0.46.0

[07:28:54.294] [email protected]
[07:28:54.294] darwin x64
[07:28:54.295] SSH Resolver called for "ssh-remote+121.xx.xx.68", attempt 1
[07:28:54.295] SSH Resolver called for host: 121.xx.xx.68
[07:28:54.295] Setting up SSH remote "121.xx.xx.68""
[07:28:54.306] Using commit id "b37e54c98e1a74ba89e03073e5a3761284e3ffb0" and quality "stable" for server
[07:28:54.309] Testing ssh with ssh -V
[07:28:54.323] ssh exited with code: 0
[07:28:54.323] Got stderr from ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
[07:28:54.324] Running script with connection command: ssh -D 57894 -o ConnectTimeout=15 121.xx.xx.68 bash
[07:28:54.324] Install and start server if needed
[07:28:54.408] > /bin/sh: ssh: command not found
[07:28:54.408] Got some output, clearing connection timeout
[07:28:54.905] "install" terminal command done
[07:28:54.906] Install terminal quit with output: /bin/sh: ssh: command not found
[07:28:54.906] Received install output: /bin/sh: ssh: command not found
[07:28:54.906] Failed to parse remote port from server output: /bin/sh: ssh: command not found
[07:28:54.906] 
[07:28:54.906] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"UnparsableOutput"},"measures":{"resolveAttempts":1,"retries":1}}
[07:28:54.907] ------

Extension version: 0.46.0
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:31:32.854Z)
OS version: Darwin x64 19.0.0


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled|
|Load (avg)|2, 3, 2|
|Memory (System)|16.00GB (0.83GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|


Most helpful comment

UPDATE
this error was on vscode 1.38-stable
I try vscode 1.39.0-insider and reinstall all extensions and it works~

>All comments

UPDATE
this error was on vscode 1.38-stable
I try vscode 1.39.0-insider and reinstall all extensions and it works~

Was this page helpful?
0 / 5 - 0 ratings