mongoose-ssh
v0.1.0
Published
Mongoose through ssh-tunnel
Downloads
1,184
Readme
Mongoose-Ssh
Mongoose through ssh tunnel.
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