MongoDB through SSH takes a ridiculous amount of time to connect/execute

Jamie “Neproshennie” Ivanov shared this problem 7 years ago
Cannot Reproduce

MongoDB through SSH takes a ridiculous amount of time to connect/execute. I'm currently using a SSH key and connecting to the host via internet or intranet takes around the same amount of time -- it can take upwards of a couple of minutes just to establish an initial connection. I don't understand this because I can issue a regular SSH connection in seconds and I can create a SSH tunnel via Python and use pymongo through the tunnel long before mongobooster even completes the initial connection.

Replies (1)

photo
1

Which version are you using?

Could you please give me the detailed steps, related ssh server and test key to allow me to reproduce the issue locally?

This comment is in trash! Restore
photo
1

I'm using the latest version - 4.0.2. Steps? The steps are pretty straight forward: I setup the connection to use SSH. There's really nothing more to it than that. I will not send you any of my keys because that will compromise security and they are just standard RSA keys of 2048 or 4096 bits. It's easy to test so just generate some keys and test it. It works fine in everything else so I'm not about to even remotely consider my keys are the issue here because they are not.

This comment is in trash! Restore
photo
1

I tried it a few time with a new aws mongodb server and SSH key, but can't recall the issue.

This comment is in trash! Restore
photo
1

I don't know what to say because it happens on both of my macOS Sierra Macbook Pros. Using a 2048 or 4096 RSA key, it takes a long time to connect. This is still an issue.

This comment is in trash! Restore
photo
1

I tried my macOS Sierra Macbook, but still can't recall the issue.

This comment is in trash! Restore
photo
Leave a Comment
 
Attach a file