Since the recent update to MongoDB Compass (now 1.21.0, macOS Catalina 10.15.4), it is not able to connect to my remote server using an SSH tunnel.
I use simple username/password authentication for both ssh and mongoDB. The very same parameters worked (and still work) with older version of Compass. Also using pymongo with SSH tunnel forwarder works without any issues - so this seems to be limited to the most recent version of compass in my case. I tried both community edition and the “normal” one.
After clicking on connect and waiting for ca. a minute, I receive the message:
connect ECONNREFUSED 127.0.0.1:27017
Is it a bug, or does the new version requires any special settings?
I see that Peter has already raised a bug report for this: COMPASS-4268: Not able to connect over SSH Tunnel any more. The report mentions macOS Catalina 10.15.4; if you are using a different O/S it would be helpful to comment on the Jira issue to help the team identify if this affects ofter platforms.
Hi,
I’m experimenting the same issue and I was wondering if we could rollback to the previous compass version while waiting for a fix.
Is it downloadable somewhere?
Hi @Marco_Mocca, if you know the version that you are looking for you can put that at the end of https://downloads.mongodb.com/compass/ to get an older version.
I’m still getting this on Windows 10. After 1.21.0 I can’t connect using ssh from Compass, but if I make a ssh tunnel using putty or something else and connect to localhost 27017 for example it works.
In Compass the error is connect ECONNREFUSED 127.0.0.1:29468 I don’t specify that port anywhere I’m trying to connect to a default 27017 port but it looks like when using ssh Compass ignores the provided port.