Usage Guidelines – Ubuntu 20.04 Minimal with MongoDB

MongoDB

Ubuntu 20.04 Minimal

Connecting to Ubuntu 20.04 Minimal with MongoDB using Studio 3T through the SSH tunnel

To start the server, run the VM through Azure Portal.

  1. To establish a connection with the server, you should have the VM’s IP address. You can find it in your Azure personal account. (Select the virtual machine from the list, go to “Overview,” and your IP will be displayed under “Public IP Address“.)
  1. In the Azure Firewall, you need to open ports 22, 27017, 27018, 27019, 27020 TCP.
  1. Go to the download page of Studio 3T
  1. Choose which OS you want to download the application for
  1. If the portable version was downloaded, unpack the archive “studio-3t-x64.zip” (if Windows was selected) and run the file studio-3t-x64.exe
  2. When you start the app, the window with the creation of the connection opens. If this did not happen, click “File” > “Connect…” in the upper right corner. 
  1. In the “Connection Manager” window, click on “New Connection”
  1. Select “Manually configure my connection settings” and click “Next”
  1. In the “Server” tab in the “Connection name” field (1) name the connection in any convenient way. The other fields (“Server” (2) and “Port” (3)) leave with no changes.
  1. In the “SSH” tab:
  • select “Use SSH tunnel to connect” (1), 
  • in the “SSH Address” field (2) enter the address of the virtual machine, 
  • enter Port 22 (3), 
  • in the “SSH User Name” field (4) type the username to connect to the VM,
  • in the “SSH Auth Mode” field, select the “Password” (5), 
  • in the “SSH Password” field (6) write the password which was used to connect to the virtual machine before. 
  • click “Test connection” (7) to check if all settings are correct.
  1. The following window should appear:
  1. Close this window and click “Save” to save the connection.
  1. In the “Connection Manager” window, select the connection you just created and click the “Connect” button.
  1. Now you can work with your own MongoDB