Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcollina/ssh-mole

Expose remote ports on localhost!
https://github.com/mcollina/ssh-mole

Last synced: 2 months ago
JSON representation

Expose remote ports on localhost!

Awesome Lists containing this project

README

        

ssh-mole
========

Expose remote ports on localhost!

```js
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()
})
```

Acknowledgements
----------------

This project was kindly sponsored by [nearForm](http://nearform.com).

License
-------

MIT