@microsoft/dev-tunnels-ssh-tcp
Version:
SSH TCP extensions library for Dev Tunnels
32 lines • 1.1 kB
TypeScript
import { SshService } from '@microsoft/dev-tunnels-ssh';
/**
* Listens on a local port and forwards incoming connections as SSH channels.
*/
export declare class LocalPortForwarder extends SshService {
private readonly pfs;
private readonly channelType;
private tcpListener?;
private tcpListener2?;
private port;
/**
* IP address of the local network interface the forwarder is listening on.
*/
readonly localIPAddress: string;
/**
* Local port that the forwarder is listening on.
*/
get localPort(): number;
/**
* Remote forwarding target host, or `undefined` if this forwarding was requested
* by the remote side (without specifying the remote target).
*/
readonly remoteHost?: string;
/**
* Remote forwarding target port, or `undefined` if this forwarding was requested
* by the remote side (without specifying the remote target).
*/
readonly remotePort?: number;
private acceptConnection;
dispose(): void;
}
//# sourceMappingURL=localPortForwarder.d.ts.map