Note
Managed MongoDB® is currently not compatible with the Static NAT feature of Scaleway Public Gateways. Instead, you can use Public Gateways' SSH bastion feature and perform port forwarding. Follow the steps below to connect using SSH bastion.
Your opinion helps us make a better documentation.
Managed MongoDB® is currently not compatible with the Static NAT feature of Scaleway Public Gateways. Instead, you can use Public Gateways' SSH bastion feature and perform port forwarding. Follow the steps below to connect using SSH bastion.
If you want to connect locally to a Database Instance that is not accessible via the public internet, you can use SSH Bastion and connect it to the same Private Network the Database Instance is connected to.
Open an SSH tunnel with port forwarding:
ssh -L local_port:instance_id.network_id.internal:27017 bastion@gatewayIP -p 61000 -N
Connect using mongosh
:
mongosh --host localhost --port local_port --username "username"
Your opinion helps us make a better documentation.