Narcissistic Pickle Meister
Have ideas to improve npm?Join in the discussion! »

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

Install

npm i ssh-mole

DownloadsWeekly Downloads

5

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar