Reputation: 4473
I'm trying to set-up MongoVUE to connect to a networked server running MongoDB. I can connect to it very easily either via SSHing in Putty or using mongo ip:port in windows command line.
However, when setting up a connection via MongoVUE's SSH tunnel, I get the error:
Unable to connect to server 127.0.0.1:5252: No connection could be made because the target machine actively refused it 127.0.0.1:5252.
So I assume there's something wrong with the firewall configuration.
However, my /etc/sysconfig/iptables contains the line:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 27017 -j ACCEPT
What else should be in place to let this connect?
Here is the MongoVue SSH configuration:
Upvotes: 3
Views: 2512
Reputation: 3374
I had to use a little trick to make built-in "SSH Tunnel" work.
It turns out that default IP for a localhost
in Windows 7 is Ipv6 address, so you have to add (or just un-comment) the following line into your \System32\drivers\etc\hosts file
127.0.0.1 localhost
And configure Mongovue connection as follows (with your IP for sure):
Notice the same IP on both tabs
Upvotes: 1
Reputation: 7333
I get the same error using the built-in SSH feature of MongoVUE.
I suspect that this is a bug in MongoVUE. I was able to get SSH to work using Putty following the instructions at http://www.mongovue.com/2011/08/04/mongovue-connection-to-remote-server-over-ssh/.
Below is Putty Tunnel configuration: Putty configured to listen on 5151 and then connect to 27017 on remote system (MongoD).
Upvotes: 5