Expose remote ports on localhost!
var dig = require('ssh-mole')
dig({
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()
})
This project was kindly sponsored by nearForm.
MIT