Skip to content

littledumb/mongoose-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published