1.0.4 • Published 3 years ago

ssh-remote-port-forward v1.0.4

Weekly downloads
13,776
License
MIT
Repository
github
Last release
3 years ago

SSH Remote Port Forward

Allows the client to tunnel back to the host.

Node.js CI npm version npm version

Install

npm install --save ssh-remote-port-forward

Usage

import { 
  createSshConnection, 
  SshConnection, 
  ConnectConfig 
} from "ssh-remote-port-forward";

const connectConfig: ConnectConfig = {
  host: "example",
  port: "22",
};

const sshConnection: SshConnection = await createSshConnection(
  connectConfig
);

await sshConnection.remoteForward("localhost", 8000)