I am trying to SSH tunnel into my EC2 instance so that i can use Rock Mongo as my dB client.
I've tested the mongodb
on AWS and it seems to be working fine, now if i could only connect using the client.
Here are my settings from Tunnelier
an excerpt from Rock Mongo's config.php
$MONGO["servers"][$i]["mongo_name"] = "AWS";
$MONGO["servers"][$i]["mongo_host"] = "127.0.0.1:3000";
$MONGO["servers"][$i]["mongo_port"] = "27018";
$MONGO["servers"][$i]["control_users"]["admin"] = "admin";
$i ++;
and from command line for my EC2 instance i did
mongod --port 27018
However the connection does not happen and i get an error message of
Unable to connect MongoDB, please check your configurations. MongoDB said:failed to get host from :27018 of 127.0.0.1:3000:27018.
Question is this the correct way of going about it or should i use a different method?
Here's the fix incase anyone has a similar problem
rockmongo's config.php
$MONGO["servers"][$i]["mongo_name"] = "AWS";
$MONGO["servers"][$i]["mongo_host"] = "127.0.0.1";
$MONGO["servers"][$i]["mongo_port"] = "3306";
$MONGO["servers"][$i]["control_users"]["admin"] = "admin";