![]() Save the changes and press connect icon to see if the connection is working fine. Here, I have entered my Ubuntu 18 Vagrant box ssh credentials. On Robo 3T GUI, in the connection settings, you need to do few changes as shown onĮnter mongodb admin database username and password which you have created earlier. Save and exit the nf file and restart mongodb server. # network interfacesīindIp: 0.0.0.0 #default value is 127.0.0.1Īlso in the same nf file uncomment security option and add authorization option as shown below. This video shows how to configure the system to allow the connection from any host located in the local network. Open up etc/nf file and do the following change. MongoDB Server, by default, allow only connections from localhost. The following change should only be done in your development server. We need to allow remote connections from any ip address. T14:42:01.374+0300 Error: DBClientBase::findN: transport error: localhost:9999 ns: admin.$cmd query: ) īy default mongodb is configured to allow connections only from localhost(IP 127.0.0.1). The connection fails, I get this instead: MongoDB shell version: 2.6.0Ĭhannel 2: open failed: connect failed: Connection timed outĬhannel 3: open failed: connect failed: Connection timed out however when I run the command: mongo -host localhost -port 9999 ![]() Click the Connect button to navigate to the Compass Home Page. The idea is to forward all mongodb connections on port 9999 to the one on the host on port 27101. To learn how to format the connection string for a deployment which is not hosted on Atlas, see Connection String URI Format. You have the following connection options: SSH Connection To connect to a deployment using SSH with Password or SSH with Identity File, use the following fields: Behavior In MongoDB Compass, SSH Tunnel Connections allow users to connect to replica sets. I also tried it with replacing host with an ip address Procedure 1 Click Advanced Connection Options. ![]() I tried setting up an ssh tunnel via command line like so: ssh -fN -l root -i path/to/id_rsa -L 9999::27017 It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb.
0 Comments
Leave a Reply. |