mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 21:40:03 +00:00
prefer saved password to keyboard interactive auth
This commit is contained in:
parent
4197cefdfd
commit
5d2d179677
@ -194,13 +194,6 @@ export class SSHSession {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.profile.options.auth || this.profile.options.auth === 'keyboardInteractive') {
|
|
||||||
const savedPassword = this.profile.options.password ?? await this.passwordStorage.loadPassword(this.profile)
|
|
||||||
if (savedPassword) {
|
|
||||||
this.allAuthMethods.push({ type: 'keyboard-interactive', savedPassword })
|
|
||||||
}
|
|
||||||
this.allAuthMethods.push({ type: 'keyboard-interactive' })
|
|
||||||
}
|
|
||||||
if (!this.profile.options.auth || this.profile.options.auth === 'password') {
|
if (!this.profile.options.auth || this.profile.options.auth === 'password') {
|
||||||
if (this.profile.options.password) {
|
if (this.profile.options.password) {
|
||||||
this.allAuthMethods.push({ type: 'saved-password', password: this.profile.options.password })
|
this.allAuthMethods.push({ type: 'saved-password', password: this.profile.options.password })
|
||||||
@ -209,6 +202,15 @@ export class SSHSession {
|
|||||||
if (password) {
|
if (password) {
|
||||||
this.allAuthMethods.push({ type: 'saved-password', password })
|
this.allAuthMethods.push({ type: 'saved-password', password })
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (!this.profile.options.auth || this.profile.options.auth === 'keyboardInteractive') {
|
||||||
|
const savedPassword = this.profile.options.password ?? await this.passwordStorage.loadPassword(this.profile)
|
||||||
|
if (savedPassword) {
|
||||||
|
this.allAuthMethods.push({ type: 'keyboard-interactive', savedPassword })
|
||||||
|
}
|
||||||
|
this.allAuthMethods.push({ type: 'keyboard-interactive' })
|
||||||
|
}
|
||||||
|
if (!this.profile.options.auth || this.profile.options.auth === 'password') {
|
||||||
this.allAuthMethods.push({ type: 'prompt-password' })
|
this.allAuthMethods.push({ type: 'prompt-password' })
|
||||||
}
|
}
|
||||||
this.allAuthMethods.push({ type: 'hostbased' })
|
this.allAuthMethods.push({ type: 'hostbased' })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user