How to troubleshoot Vscode ssh could not establish connection to "hostname"? - linux

I'm trying to connect to a host with Vscode ssh, but I keep getting "could not establish connection to 'hostname'".
I'm confused because it was working perfectly fine and then it stopped working out of the blue.
I did not change the hostname or any config related to ssh in vscode
I can still connect to the host in PuTTY, but I'd like to use vscode
output:
[13:55:52.602] Log Level: 2
[13:55:52.604] remote-ssh#0.76.1
[13:55:52.604] win32 x64
[13:55:52.617] SSH Resolver called for "ssh-remote+ug09.cs.ualberta.ca", attempt 1
[13:55:52.617] "remote.SSH.useLocalServer": false
[13:55:52.618] "remote.SSH.showLoginTerminal": false
[13:55:52.618] "remote.SSH.remotePlatform": {"ug03.cs.ualberta.ca":"linux","ug09.cs.ualberta.ca":"linux","uf23.cs.ualberta.ca":"linux"}
[13:55:52.618] "remote.SSH.path": undefined
[13:55:52.618] "remote.SSH.configFile": undefined
[13:55:52.618] "remote.SSH.useFlock": true
[13:55:52.618] "remote.SSH.lockfilesInTmp": false
[13:55:52.619] "remote.SSH.localServerDownload": auto
[13:55:52.619] "remote.SSH.remoteServerListenOnSocket": false
[13:55:52.619] "remote.SSH.showLoginTerminal": false
[13:55:52.619] "remote.SSH.defaultExtensions": []
[13:55:52.619] "remote.SSH.loglevel": 2
[13:55:52.619] "remote.SSH.enableDynamicForwarding": true
[13:55:52.619] "remote.SSH.enableRemoteCommand": false
[13:55:52.620] "remote.SSH.serverPickPortsFromRange": {}
[13:55:52.620] "remote.SSH.serverInstallPath": {}
[13:55:52.645] SSH Resolver called for host: ug09.cs.ualberta.ca
[13:55:52.646] Setting up SSH remote "ug09.cs.ualberta.ca"
[13:55:52.668] Using commit id "8908a9ca0f221f36507231afb39d2d8d1e182702" and quality "stable" for server
[13:55:52.672] Install and start server if needed
[13:55:52.676] Checking ssh with "ssh -V"
[13:55:52.729] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[13:55:52.734] Running script with connection command: ssh -T -D 62422 "ug09.cs.ualberta.ca" bash
[13:55:52.737] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[13:55:52.985] >
>
> ]0;C:\WINDOWS\System32\cmd.exe
[13:55:52.985] Got some output, clearing connection timeout
[13:55:53.000] >
>
[13:55:53.256] > abujayya#ug09.cs.ualberta.ca's password:
[13:55:53.257] Showing password prompt
[13:55:57.151] Got password response
[13:55:57.151] "install" wrote data to terminal: "**********"
[13:55:57.318] >
>
[13:55:58.213] > 7037813af524: running
>
[13:55:58.239] > mkdir: cannot create directory ‘/cshome/abujayya/.vscode-server/bin/8908a9ca0f22
> 1f36507231afb39d2d8d1e182702’: Disk quota exceeded
> Creating the server install dir failed...
> 7037813af524: start
> exitCode==34==
> listeningOn====
> osReleaseId====
> arch====
> tmpDir==/tmp==
> platform====
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> 7037813af524: end
>
[13:55:58.239] Received install output:
exitCode==34==
listeningOn====
osReleaseId====
arch====
tmpDir==/tmp==
platform====
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
[13:55:58.240] Failed to parse remote port from server output
[13:55:58.241] Resolver error: Error:
at Function.Create (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:586041)
at Object.t.handleInstallOutput (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:584693)
at Object.t.tryInstall (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:681846)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:644486
at async Object.t.withShowDetailsEvent (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:647831)
at async Object.t.resolve (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:645565)
at async c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:722872
[13:55:58.245] ------
[13:55:59.490] "install" terminal command done
[13:55:59.491] Install terminal quit with output:
[13:56:29.738] ConfigFileWatcher: start watching file:///c%3A/Users/Mahmoud/.ssh/config
[13:56:29.738] ConfigFileWatcher: adding save listener
[13:56:29.738] ConfigFileWatcher: adding close listener
[14:00:32.552] Picking SSH host
[14:00:33.624] Selected ug04.cs.ualberta.ca
what can I do to troubleshoot this problem?

Turns out it was because the disk quota was exceeded in the remote machine. This was fixed after I freed up some space in the remote machine.

Related

could not establish connection to "2001:1470:ff80:e9:ae1f:6bdf:feac:d658"

My goal is to connect my local computer to linux server (Ubuntu 18.04.6 LTS). I am using VSCode where I installed all neccessary packages for remote explorer and typed ssh myusername#2001:1470:ff80:e9:ae1f:6bdf:feac:d658 (config in .ssh) when adding new host. But following output error rise:
Output:
[15:50:40.254] Log Level: 2
[15:50:40.269] SSH Resolver called for "ssh-remote+2001:1470:ff80:e9:ae1f:6bdf:feac:d658", attempt 1
[15:50:40.270] "remote.SSH.useLocalServer": false
[15:50:40.271] "remote.SSH.showLoginTerminal": false
[15:50:40.271] "remote.SSH.remotePlatform": {"195.27.196.15":"linux"}
[15:50:40.271] "remote.SSH.path": undefined
[15:50:40.272] "remote.SSH.configFile": C:\Users\lesko\.ssh\config
[15:50:40.272] "remote.SSH.useFlock": true
[15:50:40.272] "remote.SSH.lockfilesInTmp": false
[15:50:40.272] "remote.SSH.localServerDownload": auto
[15:50:40.272] "remote.SSH.remoteServerListenOnSocket": false
[15:50:40.272] "remote.SSH.showLoginTerminal": false
[15:50:40.272] "remote.SSH.defaultExtensions": []
[15:50:40.273] "remote.SSH.loglevel": 2
[15:50:40.273] "remote.SSH.enableDynamicForwarding": true
[15:50:40.273] "remote.SSH.enableRemoteCommand": false
[15:50:40.273] "remote.SSH.serverPickPortsFromRange": {}
[15:50:40.273] "remote.SSH.serverInstallPath": {}
[15:50:40.276] VS Code version: 1.74.3
[15:50:40.276] Remote-SSH version: remote-ssh#0.96.0
[15:50:40.276] win32 x64
[15:50:40.277] SSH Resolver called for host: 2001:1470:ff80:e9:ae1f:6bdf:feac:d658
[15:50:40.277] Setting up SSH remote "2001:1470:ff80:e9:ae1f:6bdf:feac:d658"
[15:50:40.285] Using commit id "97dec172d3256f8ca4bfb2143f3f76b503ca0534" and quality "stable" for server
[15:50:40.291] Install and start server if needed
[15:50:41.818] Checking ssh with "ssh -V"
[15:50:41.865] > OpenSSH_for_Windows_8.1p1, LibreSSL
[15:50:41.865] > 3.0.2
[15:50:41.871] Using SSH config file "C:\Users\lesko\.ssh\config"
[15:50:41.871] Running script with connection command: ssh -T -D 59501 -F "C:\Users\lesko\.ssh\config" "2001:1470:ff80:e9:ae1f:6bdf:feac:d658" bash
[15:50:41.875] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:50:42.118] > ]0;C:\WINDOWS\System32\cmd.exe
[15:50:42.118] Got some output, clearing connection timeout
[15:50:42.125] > ssh: connect to host 2001:1470:ff80:e9:ae1f:6bdf:feac:d658 port 10000: Unknown e
> rror
> The process tried to write to a nonexistent pipe.
[15:50:43.390] "install" terminal command done
[15:50:43.391] Install terminal quit with output: rror
[15:50:43.391] Received install output: rror
[15:50:43.392] Failed to parse remote port from server output
[15:50:43.394] Resolver error: Error:
at g.Create (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:584147)
at t.handleInstallOutput (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:582761)
at t.tryInstall (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:680758)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:643114
at async t.withShowDetailsEvent (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:646432)
at async t.resolve (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:644164)
at async c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:721750
[15:50:43.407] ------
What I have already tried:
set port to 22 and 10000
created id_rsa.pub, id_rsa and known_hosts (conection refused when using ssh-keyscan)
ssh-copy-id (returns connection refused)
Remote-SSH: Kill VS Code Server on Host...
delete vscode-server

execSync throws and error trying to run node

I am running some processes inside of an EC2 instance.
To run it I initiate it with an SSM command:
cd / && cd home/ec2-user && . .nvm/nvm.sh && cd ufo && npm run start
and inside of it, I have a method in app.ts which is initialized with ts-node app.ts
import { execSync } from 'node:child_process';
import { takeNextScheduledAudit } from './sqs-scheduler';
import { uploadResultsToBucket } from './s3-uploader';
import { AuditRunParams } from "./types";
import { sendAuditResults } from "./sendResults";
(async function conductor(): Promise<void> {
const nextAuditRunParams = await takeNextScheduledAudit();
if (!nextAuditRunParams) {
execSync("sudo shutdown -h now");
}
const { targetUrl, requesterId, endpoint } = nextAuditRunParams as AuditRunParams;
try {
execSync(`npx user-flow --url=${targetUrl} --open=false`);
const resultsUrl = await uploadResultsToBucket(targetUrl);
await sendAuditResults(requesterId, endpoint, resultsUrl);
} catch (error) {
console.log(error);
}
await conductor();
})();
If I log in manually and run npm run start the scripts works as intended but if I run it using the SSM command I get this output:
> start
> ts-node app.ts
Error: Command failed: npx user-flow --url=https://deep-blue.io/ --open=false
at checkExecSyncError (node:child_process:841:11)
at execSync (node:child_process:912:15)
at conductor (/home/ec2-user/ufo/app.ts:15:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
status: 243,
signal: null,
output: [ null, <Buffer >, <Buffer 0a> ],
pid: 2691,
stdout: <Buffer >,
stderr: <Buffer 0a>
}
and this error:
Error: Command failed: sudo shutdown -h now
at checkExecSyncError (node:child_process:841:11)
at execSync (node:child_process:912:15)
at conductor (/home/ec2-user/ufo/app.ts:10:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async conductor (/home/ec2-user/ufo/app.ts:21:5) {
status: null,
signal: 'SIGTERM',
output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
pid: 2705,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(0) [Uint8Array] []
}
failed to run commands: exit status 1
Moreover, if I run execSync("node -v && npx -v") it also throws an error.
Why can I run this script when i am logged in but if i run it via a SSM command it does not recognize node inside of node?
--- Edit - Added Info ---
When running execSync(node -v && npx -v,{shell: '/bin/bash'}) I get an error:
Error: Command failed: node -v && npx -v
When running execSync(ps -p $$ && echo $SHELL, {shell: '/bin/bash'}):
PID TTY TIME CMD
7817 ? 00:00:00 bash
/bin/bash
And when I loggin and do ps -p $$ && echo $SHELL I get:
PID TTY TIME CMD
6873 pts/0 00:00:00 bash
/bin/bash
By default, all of the child_process functions execute in the same environment as the process that launched them. I don't have an account handy to test with, but it's quite likely that SSM skips over a traditional shell and just executes certain runtimes directly.
You can use the exec options like this to set a particular shell in which to launch the process:
const output = execSync('echo "doing stuff"', {
shell: '/bin/bash',
})
console.log('***** output:', output.toString())
This is assuming the OS you're using for the EC2 instance has bash available. Most flavors of linux should, but for what you're doing there, /bin/sh is sufficient if not. To get a list of the available shells, you can run:
cat /etc/shells
## or possibly
sudo cat /etc/shells
EDIT: Since you say it works fine in a shell already, you have presumably already handled this, but user-flow would also have to be available. It's not a module from npmjs, so would need to already be present on the box as either a local dependency or a private repo to which the EC2 instance has access.

Azure App Service Web Job: filebeat won't start after update -> Exiting: The system cannot find the file specified

I was using 7.9.2 filebeat successfully as Azure Web Job with IIS module enabled.
Was running it as this:
run.cmd:
set JOB_DIR=%~dp0
%JOB_DIR%filebeat.exe --environment=windows_service -c %JOB_DIR%filebeat.yml --path.home %JOB_DIR% --path.data "%HOME%\filebeat" --path.logs "%HOME%\filebeat\logs" -E logging.files.redirect_stderr=true
iis.yaml:
- module: iis
access:
enabled: true
var.paths: ["D:/home/LogFiles/http/RawLogs/*.log"]
error:
enabled: false
However, after update to 7.17.5 filebeat won't start, returning generic error "Exiting: The system cannot find the file specified."
I've enabled debug output and it logged this:
2022-07-12T17:18:36.364Z INFO instance/beat.go:685 Home path: [D:\local\Temp\jobs\continuous\filebeat\kc0z1gcp.mza\] Config path: [D:\local\Temp\jobs\continuous\filebeat\kc0z1gcp.mza\] Data path: [D:\home\filebeat] Logs path: [D:\home\filebeat\logs] Hostfs Path: [/]
2022-07-12T17:18:36.583Z DEBUG [beat] instance/beat.go:743 Beat metadata path: D:\home\filebeat\meta.json
2022-07-12T17:18:36.583Z INFO instance/beat.go:693 Beat ID: eb3f61ff-c22c-4da2-aa0f-ee8ae83f1793
2022-07-12T17:18:36.599Z ERROR instance/beat.go:1014 Exiting: The system cannot find the file specified.
I've disabled host/cloud metadata and IIS module as well as suggested here. But it didn't change anything.
Tried to delete existing data folder, this caused new meta.json with new ID created, but error was the same.
Tried to use -e option w/o -environment and got the same in stdout:
[07/12/2022 17:50:06 > d1e6ab: INFO] D:\local\Temp\jobs\continuous\filebeat\j5tqhn11.ncl>D:\local\Temp\jobs\continuous\filebeat\j5tqhn11.ncl\filebeat.exe -e -c D:\local\Temp\jobs\continuous\filebeat\j5tqhn11.ncl\filebeat.yml --path.home D:\local\Temp\jobs\continuous\filebeat\j5tqhn11.ncl\ --path.data "D:\home\filebeat" --path.logs "D:\home\filebeat\logs" -E logging.files.redirect_stderr=true -d "*"
[07/12/2022 17:50:07 > d1e6ab: ERR ] 2022-07-12T17:50:07.596Z INFO instance/beat.go:685 Home path: [D:\local\Temp\jobs\continuous\filebeat\j5tqhn11.ncl\] Config path: [D:\local\Temp\jobs\continuous\filebeat\j5tqhn11.ncl\] Data path: [D:\home\filebeat] Logs path: [D:\home\filebeat\logs] Hostfs Path: [/]
[07/12/2022 17:50:07 > d1e6ab: ERR ] 2022-07-12T17:50:07.611Z DEBUG [beat] instance/beat.go:743 Beat metadata path: D:\home\filebeat\meta.json
[07/12/2022 17:50:07 > d1e6ab: ERR ] 2022-07-12T17:50:07.611Z INFO instance/beat.go:693 Beat ID: aa6deb5a-3041-4b99-a0dd-ad2fcf643fba
[07/12/2022 17:50:07 > d1e6ab: ERR ] 2022-07-12T17:50:07.611Z ERROR instance/beat.go:1014 Exiting: The system cannot find the file specified.
[07/12/2022 17:50:07 > d1e6ab: ERR ] Exiting: The system cannot find the file specified.
Tried to run test config, returns ok.
[07/13/2022 09:26:01 > d1e6ab: INFO] D:\local\Temp\jobs\continuous\filebeat\ryopp0aj.lbr>D:\local\Temp\jobs\continuous\filebeat\ryopp0aj.lbr\filebeat.exe test config -c D:\local\Temp\jobs\continuous\filebeat\ryopp0aj.lbr\filebeat.yml --path.home D:\local\Temp\jobs\continuous\filebeat\ryopp0aj.lbr\ --path.data "D:\home\filebeat" --path.logs "D:\home\filebeat\logs" -E logging.files.redirect_stderr=true -d "*"
[07/13/2022 09:26:10 > d1e6ab: INFO] Config OK
The error is quite vague as I'm not sure what file can't it find. Is it some folder or else?
What else can I do to diagnose the issue?

Problem with accessing into OCI instance using VScode remote SSH

I tried to access my VM created on OCI using VScode remote SSH.
I followed the tutorial online and I just cannot get accessed to that.
I got error message everytimelike this:
[22:05:41.160] Log Level: 2
[22:05:41.162] remote-ssh#0.78.0
[22:05:41.162] win32 x64
[22:05:41.169] SSH Resolver called for "ssh-remote+elesis", attempt 1
[22:05:41.170] "remote.SSH.useLocalServer": false
[22:05:41.170] "remote.SSH.showLoginTerminal": false
[22:05:41.170] "remote.SSH.remotePlatform": {}
[22:05:41.170] "remote.SSH.path": undefined
[22:05:41.170] "remote.SSH.configFile": undefined
[22:05:41.171] "remote.SSH.useFlock": true
[22:05:41.171] "remote.SSH.lockfilesInTmp": false
[22:05:41.171] "remote.SSH.localServerDownload": auto
[22:05:41.171] "remote.SSH.remoteServerListenOnSocket": false
[22:05:41.172] "remote.SSH.showLoginTerminal": false
[22:05:41.172] "remote.SSH.defaultExtensions": []
[22:05:41.172] "remote.SSH.loglevel": 2
[22:05:41.172] "remote.SSH.enableDynamicForwarding": true
[22:05:41.173] "remote.SSH.enableRemoteCommand": false
[22:05:41.173] "remote.SSH.serverPickPortsFromRange": {}
[22:05:41.173] "remote.SSH.serverInstallPath": {}
[22:05:41.222] SSH Resolver called for host: elesis
[22:05:41.223] Setting up SSH remote "elesis"
[22:05:41.261] Using commit id "dfd34e8260c270da74b5c2d86d61aee4b6d56977" and quality "stable" for server
[22:05:41.268] Install and start server if needed
[22:05:42.873] Checking ssh with "ssh -V"
[22:05:42.956] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[22:05:42.965] Running script with connection command: ssh -T -D 62778 elesis bash
[22:05:42.970] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[22:05:43.281] > ]0;C:\WINDOWS\System32\cmd.exe
[22:05:43.282] Got some output, clearing connection timeout
[22:05:43.297] > Bad owner or permissions on C:\\Users\\Elesis/.ssh/config
> The process tried to write to a nonexistent pipe.
>
[22:05:44.583] "install" terminal command done
[22:05:44.583] Install terminal quit with output:
[22:05:44.583] Received install output:
[22:05:44.584] Resolver error: Error:
at Function.Create (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:586041)
at c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:583914
at Object.t.handleInstallOutput (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:584615)
at Object.t.tryInstall (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:681924)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:644564
at async Object.t.withShowDetailsEvent (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:647909)
at async Object.t.resolve (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:645643)
at async c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:722950
[22:05:44.591] ------
Here is my SSH config file:
Host elesis
HostName 168.138.9.67
User ubuntu
IdentityFile D:\xxx\xxx\xxx\ssh-key-2022-04-23.key
I don't know why.
Please help me.

Error while Connecting to a ec2 instance through VSCode Remote SSH

I have tried to connect to my amazon instance through SSH before through a program called Bitvise SSH, but today I found out there is a way to directly connect to my instance through a function in VSCode.
my config
This is my config file for the SSH connection for the VS code SSH connection.
And apparently when I try to connect to the instance I get the error
[15:49:16.843] Log Level: 2
[15:49:16.846] remote-ssh#0.70.0
[15:49:16.846] win32 x64
[15:49:16.847] SSH Resolver called for "ssh-remote+ec2-user", attempt 1
[15:49:16.847] "remote.SSH.useLocalServer": false
[15:49:16.848] "remote.SSH.showLoginTerminal": false
[15:49:16.848] "remote.SSH.remotePlatform": {}
[15:49:16.848] "remote.SSH.path": undefined
[15:49:16.848] "remote.SSH.configFile": C:\Users\algoo\.ssh\config\
[15:49:16.848] "remote.SSH.useFlock": true
[15:49:16.848] "remote.SSH.lockfilesInTmp": false
[15:49:16.848] "remote.SSH.localServerDownload": auto
[15:49:16.848] "remote.SSH.remoteServerListenOnSocket": false
[15:49:16.849] "remote.SSH.showLoginTerminal": false
[15:49:16.849] "remote.SSH.defaultExtensions": []
[15:49:16.849] "remote.SSH.loglevel": 2
[15:49:16.849] "remote.SSH.serverPickPortsFromRange": {}
[15:49:16.849] "remote.SSH.enableDynamicForwarding": true
[15:49:16.849] "remote.SSH.serverInstallPath": {}
[15:49:16.850] SSH Resolver called for host: ec2-user
[15:49:16.850] Setting up SSH remote "ec2-user"
[15:49:16.886] Using commit id "899d46d82c4c95423fb7e10e68eba52050e30ba3" and quality "stable" for server
[15:49:16.890] Install and start server if needed
[15:49:19.539] Checking ssh with "ssh -V"
[15:49:19.607] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.3.3
[15:49:19.614] Using SSH config file "C:\Users\algoo\.ssh\config\"
[15:49:19.614] Running script with connection command: ssh -T -D 59628 -F "C:\Users\algoo\.ssh\config\" "ec2-user" bash
[15:49:19.617] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:49:19.860] > u]0;C:\WINDOWS\System32\cmd.exe
[15:49:19.861] Got some output, clearing connection timeout
[15:49:19.874] > sage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
> [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
> [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
> [-i identity_file] [-J [user#]host[:por
[15:49:19.889] > t]] [-L address]
> [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
> [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
> [-w local_tun[:remote_tun]] destination [command]
> The process tried to write to a nonexistent pipe.
[15:49:21.170] "install" terminal command done
[15:49:21.171] Install terminal quit with output: [-w local_tun[:remote_tun]] destination [command]
[15:49:21.171] Received install output: [-w local_tun[:remote_tun]] destination [command]
[15:49:21.172] Failed to parse remote port from server output
[15:49:21.173] Resolver error: Error:
at Function.Create (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430425)
at Object.t.handleInstallOutput (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:429068)
at Object.t.tryInstall (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:524212)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487216
at async Object.t.withShowDetailsEvent (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)
at async Object.t.resolve (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)
at async c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:49:21.177] ------
[16:02:54.387] ConfigFileWatcher: start watching file:///c%3A/Users/algoo/.ssh/config/
[16:02:54.387] ConfigFileWatcher: adding save listener
[16:02:54.387] ConfigFileWatcher: adding close listener
is there anything that i missed out?
[15:49:16.848] "remote.SSH.path": undefined
^^^ Try setting the remote.SSH.path in settings.json and see if that works. I use the one that comes with Git Bash
These are my settings by the way:
"remote.SSH.enableDynamicForwarding": false,
"remote.SSH.lockfilesInTmp": true,
"remote.SSH.path": "%ProgramFiles/Git/usr/bin/ssh.exe",
"remote.SSH.useLocalServer": true,

Resources