Fail to connect to MongoDB via SSH tunnel with higher OpenSSH version

Patrick shared this problem 4 years ago
Solved

Hi all,

I used to connect to MongoDB via ssh tunnel using NoSQLBooster successfully (openssh version: 7.4).

But unfortunately, It fails when openssh updated to 7.8p1, but works from Mongo cli.

Following is the error message, it looks due to ssh lib incompatible with higher openssl version?

My NoSQLBooster version is 5.2.9.

Look forward to your response, much appreciated!

10:12:38.708  SSH Error:(SSH) Channel open failure: open failed
 
10:12:38.713  *** Connect Error ***
{"lang":"","message":"SSH Error:(SSH) Channel open failure: open failed","reason":"CONNECT_FAILED","stack":"Error: (SSH) Channel open failure: open failed\n    at SSH2Stream.onFailure (/Applications/NoSQLBooster for MongoDB.app/Contents/Resources/app.asar/node_modules/ssh2/lib/client.js:1186:13)\n    at Object.onceWrapper (events.js:273:13)\n    at SSH2Stream.emit (events.js:182:13)\n    at parsePacket (/Applications/NoSQLBooster for MongoDB.app/Contents/Resources/app.asar/node_modules/ssh2-streams/lib/ssh.js:3708:10)\n    at SSH2Stream._transform (/Applications/NoSQLBooster for MongoDB.app/Contents/Resources/app.asar/node_modules/ssh2-streams/lib/ssh.js:669:13)\n    at SSH2Stream.Transform._read (_stream_transform.js:190:10)\n    at SSH2Stream._read (/Applications/NoSQLBooster for MongoDB.app/Contents/Resources/app.asar/node_modules/ssh2-streams/lib/ssh.js:251:15)\n    at SSH2Stream.Transform._write (_stream_transform.js:178:12)\n    at doWrite (_stream_writable.js:410:12)\n    at writeOrBuffer (_stream_writable.js:394:5)\n    at SSH2Stream.Writable.write (_stream_writable.js:294:11)\n    at Socket.ondata (_stream_readable.js:666:20)\n    at Socket.emit (events.js:182:13)\n    at addChunk (_stream_readable.js:283:12)\n    at readableAddChunk (_stream_readable.js:264:11)\n    at Socket.Readable.push (_stream_readable.js:219:10)"} 

Replies (1)

photo
1

NoSQLBooster's NodeJS version is 10.11.0 which does not support the Ed25519 key. Development/testing is done against OpenSSH (7.6 currently).

We plan to upgrade Nodejs to 12.x in the next major release. Node.js 12.x supports the Ed25519 key. The minor update will not upgrade the major version of Node.js.

photo
1

Qinghai, Thanks a lot for your reply!

photo
Leave a Comment
 
Attach a file