Not able to connect MongoDB Compass
Asked Answered
R

1

14

I am not able to connect my server in MongoDB Compass. I am trying to connect by identity file. I am providing hostname username and file. I got:

'Error creating SSH Tunnel: Timed out while waiting for forwardOut'

What does it mean?

Rationality answered 3/3, 2017 at 9:14 Comment(2)
Few things to note according to the image. Some times the pem file will have a pass phrase, if so dont forget it add it. And the server cannot be pinged. So make sure whether the server is running.Moorehead
I guess pass phrase in not there. Because I can able to logged in via termnal to that mongodb. But I am facing issue on MongoDB CompassRationality
S
21

Hi, krl! I was getting the exact same error from MongoDB Compass Community 1.11.1 while trying to connect through an SSH tunnel, with a ppk file protected by a passphrase.

Are you putting your remote server IP or domain name in the first field (hostname)? That was my mistake.

What solved it for me was setting the Hostname field (the first one on top) to localhost instead of remote server IP or domain name. Put your domain/IP only on the field SSH Hostname.

I hope it helps.

Scraggly answered 15/1, 2018 at 13:36 Comment(2)
And where to put my shh hostname??Inna
Hey, @MahmoudEzzat. Set the field SSH Tunnel to "Use Identity File", then the SSH Hostname field (along with several others) will appear. Valid for v1.18.0Scraggly

© 2022 - 2024 — McMap. All rights reserved.