Hi,
I got this message error while trying to connect Atlas through mongo shell.
$ mongo “mongodb+srv://cluster0-jxeqq.mongodb.net/test” --username m001-student -password m001-mongodb-basics
MongoDB shell version v4.2.3
connecting to: mongodb://cluster0-shard-00-02-jxeqq.mongodb.net:27017,cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017/test?compressors=disabled&gssapiServiceName=mongodb&ssl=true
*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
2020-03-19T03:48:10.758+0700 E QUERY [js] Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2020-03-19T03:48:10.768+0700 F - [main] exception: connect failed
2020-03-19T03:48:10.768+0700 E - [main] exiting with code 1
Not too sure why it says it could not make the connection since I don’t have a firewall set up that would block it. Moreover, the telnets and the ping tests were successful too including Compass being able to access to the server.