We help IT Professionals succeed at work.
Private
Troubleshooting Question

How can I connect to Mongo DB on Linux box on AWS?

335 Views
Last Modified: 2020-10-26
We have a Linux box on AWS with a Mongo DB on it. I have the code locally that uses the DB.

Now, I want to look at the tables in this Mongo DB. How can I do this? Someone the team said maybe:

use datagrip, which lets me create a MongoDB connection tunneled over ssh to the production box.

I use SQL Server with SSMS. New to Mongo and connecting to this database. Is "datagrip" like SSMS? Any ideas how I can do this?
Comment
Watch Question

KimputerIT Manager
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT

Author

Commented:
The explanation helps. I'll look into Datagrip since my manager is using it. I will also look into "Mongo's own Compass". I'm guessing this is like SQL Server's SSMS.
KimputerIT Manager
CERTIFIED EXPERT

Commented:
Except much simpler, since Mongo is much simpler by design (like about 100-fold)
CERTIFIED EXPERT

Author

Commented:
Thanks. I'll look into the tools.
CERTIFIED EXPERT

Author

Commented:
>>Whenever you do SSH tunneling though
I have Datagrip downloaded. I have the credentials. Before connecting view Datagrip , do I need to establish some kind of an SSH connection?

So....I downloaded Datagrip, entered the credentials (can't connect - double checking that)...but thinking is there another step I'm missing?


IT Manager
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT

Author

Commented:
Ok, then I have it correctly. I'll see why  I cant connect. Maybe wrong credentials. I'll check with my manager.

Have you used Datagrip? 
KimputerIT Manager
CERTIFIED EXPERT

Commented:
No, I have not, I'm going by screenshots.
CERTIFIED EXPERT

Author

Commented:
Thanks
CERTIFIED EXPERT

Author

Commented:
I couldn't connect but this helps. I'll close this question and research why I can't connect. 
KimputerIT Manager
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT

Author

Commented:
Thanks, I'll try that as well. 
CERTIFIED EXPERT

Author

Commented:
Putty worked. Compass still isn't. I'll open a new question with screenshots.
Thanks for your help.
CERTIFIED EXPERT

Author

Commented:
It just connected using Compass. Thanks for your help.