///
interface Options {
username?: string;
password?: string;
privateKey?: string | Buffer;
agentForward?: boolean;
bastionHost?: string;
passphrase?: string;
endPort?: number;
endHost: string;
agentSocket?: string;
skipAutoPrivateKey?: boolean;
noReadline?: boolean;
}
interface ForwardingOptions {
fromPort: number;
toPort: number;
toHost?: string;
}
declare class SSHConnection {
private options;
private debug;
private server;
private connections;
private isWindows;
constructor(options: Options);
shutdown(): Promise;
tty(): Promise;
executeCommand(command: any): Promise;
private shell;
private establish;
private connectViaBastion;
private connect;
private getPassphrase;
forward(options: ForwardingOptions): Promise<{}>;
}
export { SSHConnection, Options };