diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index 008e78b1d4..01ecdcebef 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -533,7 +533,7 @@ export class SSHSession { while (true) { const m = methodsLeft - const method = this.remainingAuthMethods.find(x => !m || m.includes(sshAuthTypeForMethod(x))) + const method = this.remainingAuthMethods.find(x => m.length === 0 || m.includes(sshAuthTypeForMethod(x))) if (!method) { return null