Installation
npm install --save @types/tunnel-ssh
Summary
This package contains type definitions for tunnel-ssh (https://github.com/agebrock/tunnel-ssh).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tunnel-ssh.
import * as net from "net";
import * as ssh2 from "ssh2";
export interface TunnelOptions {
autoClose?: boolean;
}
export interface ForwardOptions {
srcAddr: string;
srcPort: number;
dstAddr: string;
dstPort: number;
}
export function createTunnel(
tunnelOptions: TunnelOptions,
serverOptions: net.ListenOptions,
sshOptions: ssh2.ConnectConfig,
forwardOptions: ForwardOptions,
): Promise<[net.Server, ssh2.Client]>;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/ssh2
Credits
These definitions were written by .