![]() ![]() Please let me know if you have any questions/comments/feedback. Once you have the SSH tunnel set you can connect via RoboMongo on localhost:6666.Īny traffic will be diverted to 1.2.3.4 then to localhost:27017. Please make sure not to use low port numbers (lower than 1024) as local machine's port, since you won’t be able to bind them without root privileges. The -i parameter allows you to connect using a. And 1.2.3.4 is remote server's ip address. The userId is the userId you use to login to remote box. ![]() Ssh -fN -i ~/.ssh/YourKeyFile.pem -L 6666:localhost:27017 command above is setting up: traffic on your local machine's 6666 port to be forwarded to remote server's localhost:27017. Issue the following command on your terminal (I am using Mac hence a UNIX based system): 0 Reply Compose Preview Tips: You can mention users to notify them: username You can use Markdown to format your question. Also included in the post is a link to documentation from MongoDB on various Compass connection errors. Being able to use RoboMongo is a major productivity boost and I want to be able to use it to connect to remote DB. The post includes a link to a guide that provides the steps on connecting MongoDB Compass using an SSH tunnel. Of course manually typing in my queries on a command line isn't my favorite thing to do. Which means logging into the box, using mongo command to connect to the database and then issue my queries. ![]() In my case the problem is that the MongoDb server is on a private network and the only way to get to the private server from my machine is via ssh. I love to use RoboMongo as the Mongo DB Query tool. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |