we have an EC2 MongoDB 2.4 instance from Amazon MarketPlace. when i try to access it from my computer using the mongo command like so:
mongo xx-xx-xx-xx-xx.c
The following two steps enabled the remote connection for me:
After that you will be able to connect into you remote mongo instance with mongo --host YOUR_INSTANCE_IP