mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-28 15:29:58 +00:00
prioritize pubkey auth over password (fixes #2894)
This commit is contained in:
parent
0e012a90ea
commit
59ce7eeee6
@ -200,9 +200,6 @@ export class SSHService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const authMethodsLeft = ['none']
|
const authMethodsLeft = ['none']
|
||||||
if (!session.connection.auth || session.connection.auth === 'password') {
|
|
||||||
authMethodsLeft.push('password')
|
|
||||||
}
|
|
||||||
if (!session.connection.auth || session.connection.auth === 'publicKey') {
|
if (!session.connection.auth || session.connection.auth === 'publicKey') {
|
||||||
if (!privateKey) {
|
if (!privateKey) {
|
||||||
log('\r\nPrivate key auth selected, but no key is loaded\r\n')
|
log('\r\nPrivate key auth selected, but no key is loaded\r\n')
|
||||||
@ -217,6 +214,9 @@ export class SSHService {
|
|||||||
authMethodsLeft.push('agent')
|
authMethodsLeft.push('agent')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!session.connection.auth || session.connection.auth === 'password') {
|
||||||
|
authMethodsLeft.push('password')
|
||||||
|
}
|
||||||
if (!session.connection.auth || session.connection.auth === 'keyboardInteractive') {
|
if (!session.connection.auth || session.connection.auth === 'keyboardInteractive') {
|
||||||
authMethodsLeft.push('keyboard-interactive')
|
authMethodsLeft.push('keyboard-interactive')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user