MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

SSH Tunnel not working with Compass 1.21.0

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?

2 Likes

I also have the same problem here, can’t login anymore after last update.

I am facing this issue too.
Both with a connection with user/pass SSH Tunnel and other with SSH Identity File.

Screen Shot 2020-05-04 at 10.26.37

It’s astonishing frustrating how Compass can manage to get something broken on every update…

Hi @Peter_Hevesi, @William_Rufino, @hmaesta,

Welcome to the MongoDB Community.

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.

Please upvote & watch COMPASS-4268 for updates.

Thanks,
Stennie

1 Like

Hi,
I’m experimenting the same issue :cold_sweat: and I was wondering if we could rollback to the previous compass version while waiting for a fix.
Is it downloadable somewhere?

:wave:

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.

Let’s say you wanted Compass 1.16.0 for Mac the correct location would be https://downloads.mongodb.com/compass/mongodb-compass-1.16.0-darwin-x64.dmg.

2 Likes

You can find all the releases of Compass on Github: https://github.com/mongodb-js/compass/releases

3 Likes

Issue seems to be resolved since 1.21.2 - I tried and on my end and it was working.
Thanks for the quick fix.

1 Like