MongoDB不通过tunnelssh连接

时间:2018-12-17 00:39:25

标签: node.js mongodb

我正在尝试连接到远程mongodb。下面是我的tunnel-ssh配置。但这给了我Error: listen EADDRINUSE 127.0.0.1:29341错误。

const sshTunnelConfig = {
                username: 'root',
                password: 'serverPassword',
                host: '100.100.10.100',
                port: 22,
                dstHost: '100.100.10.100',
                dstPort: 27017,
                localHost: '127.0.0.1',
                localPort: 29341,
                privateKey: require('fs').readFileSync('./id_rsa.ppk'),
                passphrase: '0101010101'
            }

0 个答案:

没有答案