mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 21:40:03 +00:00
Update ssh.ts
This commit is contained in:
parent
23280c2143
commit
64f8e033c4
@ -11,7 +11,6 @@ import { ConfigService, FileProvidersService, HostAppService, NotificationsServi
|
|||||||
import { BaseSession } from 'tabby-terminal'
|
import { BaseSession } from 'tabby-terminal'
|
||||||
import { Socket } from 'net'
|
import { Socket } from 'net'
|
||||||
import { Client, ClientChannel, SFTPWrapper } from 'ssh2'
|
import { Client, ClientChannel, SFTPWrapper } from 'ssh2'
|
||||||
import type { Prompt } from 'ssh2-streams'
|
|
||||||
import { Subject, Observable } from 'rxjs'
|
import { Subject, Observable } from 'rxjs'
|
||||||
import { ProxyCommandStream, SocksProxyStream } from '../services/ssh.service'
|
import { ProxyCommandStream, SocksProxyStream } from '../services/ssh.service'
|
||||||
import { PasswordStorageService } from '../services/passwordStorage.service'
|
import { PasswordStorageService } from '../services/passwordStorage.service'
|
||||||
@ -23,6 +22,11 @@ import { X11Socket } from './x11'
|
|||||||
|
|
||||||
const WINDOWS_OPENSSH_AGENT_PIPE = '\\\\.\\pipe\\openssh-ssh-agent'
|
const WINDOWS_OPENSSH_AGENT_PIPE = '\\\\.\\pipe\\openssh-ssh-agent'
|
||||||
|
|
||||||
|
export interface Prompt {
|
||||||
|
prompt: string
|
||||||
|
echo: boolean
|
||||||
|
}
|
||||||
|
|
||||||
interface AuthMethod {
|
interface AuthMethod {
|
||||||
type: 'none'|'publickey'|'agent'|'password'|'keyboard-interactive'|'hostbased'
|
type: 'none'|'publickey'|'agent'|'password'|'keyboard-interactive'|'hostbased'
|
||||||
name?: string
|
name?: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user