How to use Node.js to make a SSH tunneling connection to a MongoDB database
问题 My credentials work perfectly with Robomongo but I can't make the connection with node.js I have tried to make the connection using ssh2 and tunnel-ssh npm module and failed both times. -The mongo connection does not require a password -The ssh connection is made with a pem key This is the code I've used with ssh2 module, I can establish the tunneling correctly but the mongo connection fails var Client = require('ssh2').Client; var conn = new Client(); conn.on('ready', function() { console