From 21f33618d496f76868772dab6c308743b002d337 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 30 Jun 2020 15:35:07 +0200 Subject: [PATCH] stop ssh session after connection errors --- terminus-ssh/src/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/terminus-ssh/src/api.ts b/terminus-ssh/src/api.ts index d78d98ac..91a3365c 100644 --- a/terminus-ssh/src/api.ts +++ b/terminus-ssh/src/api.ts @@ -105,6 +105,7 @@ export class SSHSession extends BaseSession { this.shell = await this.openShellChannel({ x11: this.connection.x11 }) } catch (err) { this.emitServiceMessage(colors.bgRed.black(' X ') + ` Remote rejected opening a shell channel: ${err}`) + return } this.shell.on('greeting', greeting => {