diff --git a/tunnel-server/src/ssh/base-server.ts b/tunnel-server/src/ssh/base-server.ts index 3606520f..4699e61b 100644 --- a/tunnel-server/src/ssh/base-server.ts +++ b/tunnel-server/src/ssh/base-server.ts @@ -236,6 +236,7 @@ export const baseSshServer = ( .on('error', err => { log.error('client error: %j', inspect(err)) preevySshClient?.emit('error', err) + client.end() }) .on('session', accept => { log.debug('session')