1.7.0 • Published 10 years ago

remote-forwarder v1.7.0

Weekly downloads
12
License
MIT
Repository
github
Last release
10 years ago

remote-forwarder

Forward a local port to a remote server, using SSH. It wraps ssh -R so that in can be used in node-land.

Install

npm install remote-forwarder --save

Usage

remote-forwarder inherits from Recovery, so it can keep the forwarding up even if it dies.

var forwarder = require('remote-forwarder')

var forward = forwarder({
    target: target // the target host
  , identityFile: identity // the SSH identity file, optional
  , user: user // the user in the target system
  , port: port // the local port to expose remotely
  , retries: 100 // the number of retries
  // plus all other Recovery options
})

forward.on('connect', function() {
  // this will be called any time a
  // new connection is established

  // do stuff here ...

  forward.stop() // to stop forwarding
})

forward.start()

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT

1.7.0

10 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.0

11 years ago

1.2.0

11 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago