Tag Archives: AWS

Mongo DB DaaS – Connecting AWS EC2 via SSH Tunnel Port Forwarding

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 ;

aws_putty_port_forwarding

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 .

aws_putty_port_forwarding_2

We can use Robomongo for testing connection to Mongo DB cloud ;

aws_robomongo

aws_robomongo_2

Now we can query our collections ,

aws_robomongo_3

Simple! , we finished connecting Mongo DB DaaS on AWS EC2 via SSH Tunnel Port Forwarding process. That’s it!

 

Please like & share: