A
A
Alexey Yarkov2016-06-24 22:13:41
MongoDB
Alexey Yarkov, 2016-06-24 22:13:41

How to connect to Mongo on VDS via ssh tunnel?

How to connect to Mongo on VDS via ssh tunnel? On VDS in a mongo config it is registered
bindIp=127.0.0.1
Accordingly simply so monga is inaccessible to remote connections.
SSH access is configured by key. I'm using Robomongo trying to create a connection tunnel. Screenshot attached
0a8b7b391aac4a88b3815fb1931adf6b.png
What to register in the config?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-06-24
@yarkov

Understood)) When creating a connection, specify the address and port like this:
And the tunnel settings for connecting with your IP and key. Thanks to all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question