1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-11 07:28:08 +03:00

fixed ssh connections

This commit is contained in:
Eugene Pankov 2021-07-12 21:29:34 +02:00
parent 82f3b61b5e
commit ba33f18af7
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -6,7 +6,7 @@ import { Client } from 'ssh2'
import { exec } from 'child_process'
import { Subject, Observable } from 'rxjs'
import { Logger, LogService, ConfigService, NotificationsService, HostAppService, Platform, PlatformService, PromptModalComponent } from 'tabby-core'
import { ALGORITHM_BLACKLIST, ForwardedPort, SSHProfile, SSHSession } from '../api'
import { ALGORITHM_BLACKLIST, ForwardedPort, SSHAlgorithmType, SSHProfile, SSHSession } from '../api'
import { PasswordStorageService } from './passwordStorage.service'
import { ChildProcess } from 'node:child_process'
@ -40,7 +40,7 @@ export class SSHService {
let connected = false
const algorithms = {}
for (const key of Object.keys(session.profile.options.algorithms ?? {})) {
for (const key of Object.values(SSHAlgorithmType)) {
algorithms[key] = session.profile.options.algorithms![key].filter(x => !ALGORITHM_BLACKLIST.includes(x))
}