I've followed this guide to get my MongoDB server externally-facing:
https://ianlondon.github.io/blog/mongodb-auth/
but when I try to connect to it using: mongo -u myusername -p mypassword myip/mycollection
(myip is the public ip of my azure vm. Yes, i've added the inbound rule)
I get:
Error: network error while attempting to run command 'isMaster' on host 'myip:27017' : connect@src/mongo/shell/mongo.js:251:13
Details: Server: Azure vm, Ubuntu 18.04, Mongo 3.6.7 Client: vmware vm, Ubuntu 18.04, Mongo 3.6.7
I have not enabled ssh (that I'm aware of?), as other posts have suggested.
Any ideas?