Can Compass connect to Atlas Cloud (replicaSet) through SSH tunnel?

Hi Guys!

I’m improving the security of my cluster from Mongo Atlas and I set up a Bastion Host and Whitedlist the IP Address.
So I can connect to my cluster from “mongoshell”, but when I try to connect using Mongo Compass enabling the option of SSH tunnel, I can’t connect.
My idea is only permit connection from this fixed IP.

I’m using connection string, so I haven’t a valid “hostname:port” to do a manual tunnel or another workaround.

Connection String example:
mongodb+srv://USER:PASSWORD@string.server.mongodb.net/?replicaSet=atlas-xxxx-s3x4d-0&readPreference=primary

I can connect using “Studio 3T” through SSH Tunnel, but when using Compass, I can’t connect.

I think this is a software limitation.
Someone can help me?

1 Like