MongoDB SSH access on remote Meteor deployment

less than 1 minute read

There comes a time when you need to access the MongoDB database associated with your remote MUP (Meteor Up) deployment. According to their docs, the only way you can do this is to SSH in and access it from there. That’s fine (and technically accurate) except that leaves you only with a console interface via meteor mongo which isn’t always great. Here is an alternate method to get access to that database using 3T.

It’s not difficult to do and makes sense once you have done it one time. However, there is little documentation on how to implement it.

Download a MongoDB GUI

Almost any will work as long as they allow you to access a database via an SSH tunnel. Having used RoboMongo, MongoHub, and MongoChef I absolutely recommend 3T MongoChef.

Configure the SSH tunnel settings

Enter in the details for whatever auth scheme you have setup. Silvrback blog image

Configure the server settings

The main thing to remember is you want to configure server settings from the perspective of being connected via SSH. (That means everything, once connected via SSH will look as if it’s local). Silvrback blog image

That’s it! Now you can connect to your remote Meteor Up Mongo database! Silvrback blog image