![]() 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. Open up etc/nf file and do the following change. 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). ![]() This works by allocating a socket to listen to port on the local side, optionally bound to the specified bindaddress. T14:42:01.372+0300 DBClientCursor::init call() failed Relevant fragments of man 1 ssh:-D bindaddress:port Specifies a local 'dynamic' application-level port forwarding. 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 The idea is to forward all mongodb connections on port 9999 to the one on the host on port 27101. Select a data source profile where you want to change connection settings. In the Database tool window ( View Tool Windows Database), click the Data Source Properties icon on the toolbar. I also tried it with replacing host with an ip address In the command line window, specify the username that you use for the SSH tunnel and press Enter. ![]() I tried setting up an ssh tunnel via command line like so: ssh -fN -l root -i path/to/id_rsa -L 9999::27017 Also worth mentioning is the fact that I've got only the Putty.exe file, and without other helping tools, such as 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. Thanks to Celeritas' comment, I've tried to used auto-login method in Putty window - but got only 'Auto-login username' field, and not 'Auto-login password'. I've read about private-key/public-key method, but as for now - I want to stick with the username/password method. I'm guessing that I'm using the SSH protocol, trying to connect from the command line, but don't know which SSH (1 or 2), and don't think it matters. In the command line I typed in:īut got "putty Fatal error": 'unable to authenticate' error. ![]() See the final configuration below: Click Open to start the SSH session. In the left-hand menu, go to Connection -> SSH -> Tunnels. So, I've done some reading (even on similar questions asked over here), and tried the command-line approach. Enter the hostname or IP address of your Linode in the Host Name (or IP address) field. Then I entered my username and password, and was ready-to-go. Usually, I double-click the Putty.exe file, choose a session, and press 'open'. I have Windows 7 running on my PC, and am using Putty.exe to connect to Red-Hat server, somewhere along the network. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |