From b469dd603bb4e083c38eadd6ba01bce479186e7a Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 27 Jan 2022 21:00:25 +0100 Subject: [PATCH] ssh: allow empty keyb-interactive responses - fixes #5619 --- tabby-ssh/src/session/ssh.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index c06dffd6..0effb95c 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -40,7 +40,9 @@ export class KeyboardInteractivePrompt { public instruction: string, public prompts: Prompt[], private callback: (_: string[]) => void, - ) { } + ) { + this.responses = new Array(this.prompts.length).fill('') + } respond (): void { this.callback(this.responses)