I have 2 machines:
- my local windows PC (for this example X.X.X.X).
- my cloud VM with public IP (Y.Y.Y.Y).
I have a database on the VM listening to 127.0.0.1:27017
.
I can only connect to my VM using ssh on port 22
.
How can I forward the traffic so that I connect to the database from my PC? I know I need some tunnel but don't understand how to set it up, should the tunnel be on my PC or on the VM?