diff --git a/terminus-ssh/src/api.ts b/terminus-ssh/src/api.ts index 842c3184..2b2c462e 100644 --- a/terminus-ssh/src/api.ts +++ b/terminus-ssh/src/api.ts @@ -379,6 +379,8 @@ export class SSHSession extends BaseSession { async destroy (): Promise { this.serviceMessage.complete() this.proxyCommandStream?.destroy() + this.kill() + this.ssh.end() await super.destroy() }