diff --git a/src/connect.ts b/src/connect.ts index b6b60dc..a3a09a6 100644 --- a/src/connect.ts +++ b/src/connect.ts @@ -41,6 +41,9 @@ export async function calculateActualConfig(config: FileSystemConfig): Promise= 1) { + config.username = session.hostname.substr(0, session.hostname.indexOf('@')); + } config.host = config.host || session.hostname; config.port = session.portnumber || config.port; config.agent = config.agent || (session.tryagent ? 'pageant' : undefined);