我正在尝试连接到远程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'
}