Connecting Atlas cluster by manually creating SSH tunnel
Execute the following command on the machine from which you want to connect to your Atlas cluster:
ssh -i -N -L :: ec2-user@
Even though the SSH tunnel has been created, you cannot connect to Atlas cluster by specifying localhost in mongo shell, because SSL certificates are validated against the Atlas host name. To fix this, navigate to your /etc/hosts file and point ATLAS HOSTNAME to 127.0.0.1 :
127.0.0.1 <ATLAS HOSTNAME>
After this you can use any client to connect to the MongoDB Atlas cluster node:
Hi @chris
Thanks for your valuable guidance . Much appreciated. I will test you steps.
I have made entry of individual node in C:\Windows\System32\drivers\etc\hosts file and added bastion ip entry in access list [atlas] ,After that i am able to access individual node from local machine to atlas [thru bastion host via ssh tunneling]