diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index 4ab50dfa..1afa48a9 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -11,7 +11,6 @@ import { ConfigService, FileProvidersService, HostAppService, NotificationsServi import { BaseSession } from 'tabby-terminal' import { Socket } from 'net' import { Client, ClientChannel, SFTPWrapper } from 'ssh2' -import type { Prompt } from 'ssh2-streams' import { Subject, Observable } from 'rxjs' import { ProxyCommandStream, SocksProxyStream } from '../services/ssh.service' import { PasswordStorageService } from '../services/passwordStorage.service' @@ -23,6 +22,11 @@ import { X11Socket } from './x11' const WINDOWS_OPENSSH_AGENT_PIPE = '\\\\.\\pipe\\openssh-ssh-agent' +export interface Prompt { + prompt: string + echo: boolean +} + interface AuthMethod { type: 'none'|'publickey'|'agent'|'password'|'keyboard-interactive'|'hostbased' name?: string