Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ssh-remote-port-forward

cristianrgreco3.3mMIT1.0.4TypeScript support: included

SSH remote port forward

ssh, remote, port, forward, forwarding

readme

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)