![]() SSH Passphrase: Enter your pass if any otherwise you can leave it blankĬongratulations! You are now successfully connected to your MongoDB database with an SSH tunnel.SSH Identity File: Click Select a file… and and choose your SSH Key file.SSH Username: SSH Username (If you are using Ubuntu instance of AWS EC2 then it is likely to Ubuntu).SSH Tunnel and choose Use Identity File.Authentication Database: The authentication database for you user.If it is username and password then select Username / Password In this tutorial, a client running cloudflared connects over SSH to a MongoDB deployment. Cloudflare Tunnel requires a lightweight daemon, cloudflared, running alongisde the deployment and as on the client side. Authentication: Choose your authentication type. You can build Zero Trust rules to secure connections to MongoDB deployments using Cloudflare Access and Cloudflare Tunnel.Port: If you haven’t changed you can leave it as default or you can add new one if it is different.Hostname: The hostname of your MongoDB server.Click on Fill in connection fields individually.Go to Connect menu from top left and click on Connect to.Download MongoDB compass from this link.Let’s connect MongoDB database with SSH tunnel using Compass In this post, we will use MongoDB Compass a Graphical User Interface (GUI) for querying, aggregating, and analyzing our data in MongoDB. In this case, you may need to connect to MongoDB database with the SSH tunnel using a Compass. Let’s say, you have a MongoDB database server in your private subnet, which means you can’t connect or access it publicly.
0 Comments
Leave a Reply. |