diff --git a/terminus-ssh/src/api.ts b/terminus-ssh/src/api.ts index 83f2d434..3cdf4613 100644 --- a/terminus-ssh/src/api.ts +++ b/terminus-ssh/src/api.ts @@ -33,6 +33,7 @@ export interface SSHConnection { readyTimeout?: number color?: string x11?: boolean + skipBanner?: boolean algorithms?: {[t: string]: string[]} } diff --git a/terminus-ssh/src/components/editConnectionModal.component.pug b/terminus-ssh/src/components/editConnectionModal.component.pug index adcbf82f..8c9a52ec 100644 --- a/terminus-ssh/src/components/editConnectionModal.component.pug +++ b/terminus-ssh/src/components/editConnectionModal.component.pug @@ -85,6 +85,11 @@ placeholder='#000000' ) + .form-line + .header + .title Skip MoTD/banner + toggle([(ngModel)]='connection.skipBanner') + .form-line .header .title Keep Alive Interval (Milliseconds) diff --git a/terminus-ssh/src/services/ssh.service.ts b/terminus-ssh/src/services/ssh.service.ts index 9ec836a2..9b6d8d29 100644 --- a/terminus-ssh/src/services/ssh.service.ts +++ b/terminus-ssh/src/services/ssh.service.ts @@ -148,11 +148,15 @@ export class SSHService { })) ssh.on('greeting', greeting => { - log('Greeting: ' + greeting) + if (!session.connection.skipBanner) { + log('Greeting: ' + greeting) + } }) ssh.on('banner', banner => { - log('Banner: \n' + banner) + if (!session.connection.skipBanner) { + log(banner) + } }) let agent: string|null = null