mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 05:20:01 +00:00
bump russh for rsa hash autoselection
This commit is contained in:
parent
a3c5b41bb1
commit
d1c1b48502
@ -30,7 +30,7 @@
|
|||||||
"native-process-working-directory": "^1.0.2",
|
"native-process-working-directory": "^1.0.2",
|
||||||
"npm": "6",
|
"npm": "6",
|
||||||
"rxjs": "^7.5.7",
|
"rxjs": "^7.5.7",
|
||||||
"russh": "0.1.15",
|
"russh": "0.1.16",
|
||||||
"source-map-support": "^0.5.20",
|
"source-map-support": "^0.5.20",
|
||||||
"v8-compile-cache": "^2.3.0",
|
"v8-compile-cache": "^2.3.0",
|
||||||
"yargs": "^17.7.2"
|
"yargs": "^17.7.2"
|
||||||
|
@ -3628,10 +3628,10 @@ run-queue@^1.0.0, run-queue@^1.0.3:
|
|||||||
dependencies:
|
dependencies:
|
||||||
aproba "^1.1.1"
|
aproba "^1.1.1"
|
||||||
|
|
||||||
russh@0.1.15:
|
russh@0.1.16:
|
||||||
version "0.1.15"
|
version "0.1.16"
|
||||||
resolved "https://registry.yarnpkg.com/russh/-/russh-0.1.15.tgz#121c0be876c6b70c43910a56fadefffe78588a35"
|
resolved "https://registry.yarnpkg.com/russh/-/russh-0.1.16.tgz#f2192855e71ed4e17cb515d88c4739f05acdea86"
|
||||||
integrity sha512-md/72roZn8nmgq+U8rVrfqHS82aPancQM5VqrYh7wEMcnK/ll8vNJJcKH/YJv5/8n8Ovxrl8SMwDE5DlfXSL6Q==
|
integrity sha512-L6X3liMiTReSv9dOZd3GYObTLlV7YULW0oBxh0lD0HCVDmsnTMRKJFyaA2hd+9vjlPHc7ICHPf5NcReJz+pnCA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@napi-rs/cli" "^2.18.3"
|
"@napi-rs/cli" "^2.18.3"
|
||||||
|
|
||||||
|
@ -576,15 +576,12 @@ export class SSHSession {
|
|||||||
if (method.type === 'publickey') {
|
if (method.type === 'publickey') {
|
||||||
try {
|
try {
|
||||||
const key = await this.loadPrivateKey(method.name, method.contents)
|
const key = await this.loadPrivateKey(method.name, method.contents)
|
||||||
const possibleHashAlgs = ['ssh-rsa', 'rsa-sha2-256', 'rsa-sha2-512'].includes(key.algorithm) ? ['sha256', 'sha512', 'sha1'] as const : [null] as const
|
|
||||||
this.emitServiceMessage(`Trying private key: ${method.name}`)
|
this.emitServiceMessage(`Trying private key: ${method.name}`)
|
||||||
for (const alg of possibleHashAlgs) {
|
const result = await this.ssh.authenticateWithKeyPair(this.authUsername, key, null)
|
||||||
const result = await this.ssh.authenticateWithKeyPair(this.authUsername, key, alg)
|
if (result instanceof russh.AuthenticatedSSHClient) {
|
||||||
if (result instanceof russh.AuthenticatedSSHClient) {
|
return result
|
||||||
return result
|
|
||||||
}
|
|
||||||
maybeSetRemainingMethods(result)
|
|
||||||
}
|
}
|
||||||
|
maybeSetRemainingMethods(result)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.emitServiceMessage(colors.bgYellow.yellow.black(' ! ') + ` Failed to load private key ${method.name}: ${e}`)
|
this.emitServiceMessage(colors.bgYellow.yellow.black(' ! ') + ` Failed to load private key ${method.name}: ${e}`)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user