Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29250

Mongodb Compass connecting to local database not to remote database which is running locally on a EC2 Instance

$
0
0

I am connecting to the mongodb database running locally on ec2 instance via ssh by using ssh identity file provided by aws. I have provided all the necessary fields while connecting to the remote database running on aws ec2 server locally. But it is connecting to my local database running on my local machine.I have provided an image below.

Please click here to see connection configuration

In this in the Hostname section i have provided below informationhostname : localhost port : 27107In the More Options section i have provided below informationSSH Tunnel : selected Identity fileSSH Hostname : given ip address of ec2 instanceSSH Tunnel Port : 22SSH Username : username of the serverSSH Identity File : selected the ppk file given by aws

by using this details if i use to click connect then it is connecting to my local database running on my local machine.

Can anyone please help me with this.


Viewing all articles
Browse latest Browse all 29250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>