ssh-mole

0.1.0 • Public • Published

ssh-mole

Expose remote ports on localhost!

var sshMole = require('ssh-mole')
 
sshTunnel({
    host: 'x.x.x.x'
  , user: 'xxxxx'
  , remotePort: 12345
  , identityFile: 'path.to.your.pem'
}, function(err, control) {
  if (err) {
    console.log(err)
    process.exit(1)
  }
 
  // you can use the option localPort to ovveride
  console.log('tunnel digget at port', control.port)
 
  // to close the tunnel
  control.done()
})

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT

Dependents (0)

Package Sidebar

Install

npm i ssh-mole

Weekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • matteo.collina