diff --git a/tabby-ssh/src/components/sshTab.component.ts b/tabby-ssh/src/components/sshTab.component.ts index 66acde1d..8bc0eaba 100644 --- a/tabby-ssh/src/components/sshTab.component.ts +++ b/tabby-ssh/src/components/sshTab.component.ts @@ -200,13 +200,12 @@ export class SSHTabComponent extends BaseTerminalTabComponent { } const session = new SSHShellSession(this.injector, this.sshSession) - + this.setSession(session) this.attachSessionHandler(session.serviceMessage$, msg => { this.write(`\r${colors.black.bgWhite(' SSH ')} ${msg}\r\n`) session.resize(this.size.columns, this.size.rows) }) - this.setSession(session) await session.start() this.session?.resize(this.size.columns, this.size.rows) } diff --git a/tabby-ssh/src/session/shell.ts b/tabby-ssh/src/session/shell.ts index 36691751..2f4c9cfd 100644 --- a/tabby-ssh/src/session/shell.ts +++ b/tabby-ssh/src/session/shell.ts @@ -24,6 +24,7 @@ export class SSHShellSession extends BaseSession { this.ssh = ssh this.profile = ssh.profile this.setLoginScriptsOptions(this.profile.options) + this.ssh.serviceMessage$.subscribe(m => this.serviceMessage.next(m)) } async start (): Promise {