Guidance on usage: MongoDB Server on Ubuntu 20.04

Connecting to MongoDB Server on Ubuntu 20.04 using Studio 3T through the SSH tunnel

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

  1. For the connection to the server, you should know the IP address of the VM. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”).
  1. To work, you must open ports 27017, 27018, 27019, 27020 (TCP) in the network properties in the Azure firewall.
  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 on Linux Ubuntu 20.04