diff --git a/src/connect.ts b/src/connect.ts index e08cf7e..cb8fbbc 100644 --- a/src/connect.ts +++ b/src/connect.ts @@ -1,5 +1,6 @@ import { readFile } from 'fs'; import { Socket } from 'net'; +import { userInfo } from 'os'; import { Client, ClientChannel, ConnectConfig, SFTPWrapper as SFTPWrapperReal } from 'ssh2'; import { SFTPStream } from 'ssh2-streams'; import * as vscode from 'vscode'; @@ -58,7 +59,10 @@ export async function calculateActualConfig(config: FileSystemConfig): Promise(cb => readFile(config.privateKeyPath!, cb));