Saturday 17 November 2018

Nodejs tunnel-ssh

So i have two servers my mongodb is on "server 2" and my nodejs website is on "server 1" my goal is to connect nodejs to mongodbWhat do i put in these fields i can't figure out..var config = {agent : process.env.SSH_AUTH_SOCK,username:'',host: '',port: ,privateKey: require('fs').readFileSync('./id_rsa.pub'),password: ''dstHost: '',dstPort: ,localHost:'',localPort:};

Submitted November 17, 2018 at 12:53PM by marciusx1

No comments:

Post a Comment