Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- username:'root',
- password:'secret',
- host:sshServer,
- port:22,
- dstHost:destinationServer,
- dstPort:27017,
- localHost:'127.0.0.1',
- localPort: 27000
- };
- var tunnel = require('tunnel-ssh');
- tunnel(config, function (error, server) {
- //....
- });
Add Comment
Please, Sign In to add comment