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 information hostname : localhost port : 27107 In the More Options section i have provided below information SSH Tunnel : selected Identity file SSH Hostname : given ip address of ec2 instance SSH Tunnel Port : 22 SSH Username : username of the server SSH 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.