To connect to MongoDB, or any other service, from your local system, first open an SSH tunnel using the upsun tunnel:open cli command. That will establish a secure connection to your environment from your local computer and expose local ports you can connect to.
You can then enter the credentials into your local tool, be it MongoDB Compass or otherwise. The host will be localhost, the port will be one of the 30xxx ports reported by tunnel:open, and the user and password can be obtained by running upsun relationships.
When you are finished with your connection, close the connection via upsun tunnel:close.
See the documentation for more details.
Comments
Please sign in to leave a comment.