Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to connect MongoDB Compass

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?

like image 940
MongoUser Avatar asked Mar 03 '17 09:03

MongoUser


People also ask

How do I connect to a MongoDB connection?

To connect to a MongoDB Server using username and password, you have to use 'username@hostname/dbname'. Where username is the username, password is the password for that user and dbname is the database to which you want to connect to. Note : You can use multiple hostname to connect to with a single command.


1 Answers

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.

like image 50
Bernardo SOUSA Avatar answered Sep 24 '22 03:09

Bernardo SOUSA