Published: February 05 2020
Connect to remote MongoDB on AWS EC2 simply and securely via SSH tunnel
To connect to a remote MongoDB server running on AWS EC2 that only allows local connections you can use an SSH tunnel, also known as SSH port forwarding.