In this case, we will connect Mongo DB on AWS EC2 cloud platform via SSH tunnel features. I assume that you got Public AWS DNS and finished authentication procedures (adding key pairs/passwords). We login AWS with Putty – SSH session . After that we change putty configurations in connection>ssh>tunnels tab ;
In this case , Mongo DB is running on 27000 port on AWS . And we are forwarding this port to local 127.0.0.1:27000 .
We can use Robomongo for testing connection to Mongo DB cloud ;
Now we can query our collections ,
Simple! , we finished connecting Mongo DB DaaS on AWS EC2 via SSH Tunnel Port Forwarding process. That’s it!