From ba33f18af7f8861454130b92b61eafccf647fe13 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 12 Jul 2021 21:29:34 +0200 Subject: [PATCH] fixed ssh connections --- tabby-ssh/src/services/ssh.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabby-ssh/src/services/ssh.service.ts b/tabby-ssh/src/services/ssh.service.ts index e3afa5e0..ab24eb05 100644 --- a/tabby-ssh/src/services/ssh.service.ts +++ b/tabby-ssh/src/services/ssh.service.ts @@ -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)) }