Reputation: 31
Using VS code to ssh into an Ubuntu 14.04 server. At first i couldn't even connect, but after installing git for windows after putting password i get: Could not establish connection to "Host name". I can ssh into this server with putty or powershell.
This is the output on VS code:
[13:55:01.574] Got password response
[13:55:01.575] "install" wrote data to terminal: "********************"
[13:55:01.605] >
>
[13:55:04.040] "install" terminal command done
[13:55:04.040] Install terminal quit with output:
[13:55:04.040] Received install output:
[13:55:04.041] Stopped parsing output early. Remaining text:
[13:55:04.041] Failed to parse remote port from server output
[13:55:04.048] Resolver error: Error:
at Function.Create (c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:64126)
at Object.t.handleInstallOutput (c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:62865)
at k (c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:313462)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:311339
at async Object.t.withShowDetailsEvent (c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:406337)
at async Object.t.resolve (c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:315001)
at async c:\Users\Turro\.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:127:110431
[13:55:04.054] ------
Thanks in advance, ill be glad to pass any more information required to solve this problem!
Upvotes: 2
Views: 647
Reputation: 1
From the doc of vscode: https://code.visualstudio.com/docs/remote/ssh
.
system requirements:
Local: A supported OpenSSH compatible SSH client must also be installed.
Remote SSH host: A running SSH server on:
x86_64 Debian 8+, Ubuntu 16.04+, CentOS / RHEL 7+.
ARMv7l (AArch32) Raspberry Pi OS (previously called Raspbian) Stretch/9+ (32-bit).
ARMv8l (AArch64) Ubuntu 18.04+ (64-bit).
Windows 10 / Server 2016/2019 (1803+) using the official OpenSSH Server.
macOS 10.14+ (Mojave) SSH hosts with Remote Login enabled.
1 GB RAM is required for remote hosts, but at least 2 GB RAM and a 2-core CPU is recommended.
Other glibc based Linux distributions for x86_64, ARMv7l (AArch32), and ARMv8l (AArch64) should work if they have the needed prerequisites. See the Remote Development with Linux article for information prerequisites and tips for getting community supported distributions up and running.
While ARMv7l (AArch32) and ARMv8l (AArch64) support is available, some extensions installed on these devices may not work due to the use of x86 native code in the extension
Upvotes: 0
Reputation: 1324268
I can ssh into this server with putty or powershell.
That could mean you are using an SSH key with putty ppk format instead of OpenSSH.
Try and launch VSCode from a session where:
%PATH%
does not reference Putty (but does include Git, and its usr/bin
folder)GIT_SSH
environment variable is set to ssh
(although it should not be needed, if the PATH is correctly set)Upvotes: 1