Guest User

Untitled

a guest
Sep 6th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var config = {
  2. username:'root',
  3. password:'secret',
  4. host:sshServer,
  5. port:22,
  6. dstHost:destinationServer,
  7. dstPort:27017,
  8. localHost:'127.0.0.1',
  9. localPort: 27000
  10. };
  11.  
  12. var tunnel = require('tunnel-ssh');
  13. tunnel(config, function (error, server) {
  14. //....
  15. });
Add Comment
Please, Sign In to add comment