#MongoDB Compass SSH remote connection advice

2 messages · Page 1 of 1 (latest)

vale swallow
#

How are you handling connecting from local computer to mongodb on remote server? I have proper ssh connection with my server, mongodb is up and running, but I can't figure it out how to connect with MongoDB Compass. I'm getting errors like "connection timed out". I tried ssh tunneling and I saw that Compass is trying connect to server but in terminal it spammed errors "channel 3: open failed: connect failed: Connection refused". Ssh tunneling from guide: https://www.mongodb.com/community/forums/t/compass-error-creating-ssh-tunnel-eaddrinuse/11650/3
Help or alternatives would be much appreciated!

MongoDB Developer Community Forums

I should’ve made it clear that I try to connect to a remote server. On that server mongodb does not accept external interfaces, true. So hostname is my remote server that I ssh into, and then try to connect to its localhost.

tough parcelBOT