I am using a bastion host(jump server) to connect to MongoDB. I can use it via command line but I am looking to connect via Compass client.
My scenario is I have an ec2-A(public) instance which uses ec2-B(private)instance to MongoDB. I know how to do it on Windows via putty but how to do it on a Mac??
Using this to connect jump server
ssh -i ~/B.pem -o "ProxyCommand ssh -W %h:%p -i ~/A.pem email@example.com" firstname.lastname@example.org
and then mongo connection command.