8000 GitHub - littledumb/mongoose-ssh: Mongoose through ssh tunnel · GitHub
[go: up one dir, main page]

Skip to content

About

Mongoose through ssh tunnel

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Mongoose-Ssh

Mongoose through ssh tunnel.

XO code style

Install

npm install --save mongoose-ssh

Usage

const mongoose = require('mongoose-ssh');

mongoose.connect(
  {
    host: 'ssh-server-host',
    port: 'ssh-server-port',
    dstHost: 'destination-host',
    dstPort: 'destination-port',
    localHost: 'local-host',
    localPort: 'local-port',
    username: 'ssh-username',
    privateKey: 'ssh-private-key'
  },
  'mongodb://dbUsernam:dbPassword@localhost/dbname'
);

See test.js for more details.

License

MIT

References

About

Mongoose through ssh tunnel

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0