Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/mcollina/ssh-mole
- Owner: mcollina
- License: mit
- Created: 2014-06-11T08:34:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-11T08:48:26.000Z (over 10 years ago)
- Last Synced: 2024-10-13T04:32:57.338Z (2 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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