$ mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
MongoDB shell version v3.6.13
connecting to: mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017/test?authSource=admin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0
2019-06-27T13:39:45.953-0700 I NETWORK [thread1] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-00-jxeqq.mongodb.net:27017
2019-06-27T13:39:46.249-0700 I NETWORK [thread1] Successfully connected to cluster0-shard-00-00-jxeqq.mongodb.net:27017 (1 connections now open to cluster0-shard-00-00-jxeqq.mongodb.net:27017 with a 5 second timeout)
2019-06-27T13:39:51.334-0700 W NETWORK [thread1] Failed to connect to 34.205.152.216:27017 after 5000ms milliseconds, giving up.
2019-06-27T13:39:56.353-0700 W NETWORK [thread1] Failed to connect to 52.4.238.74:27017 after 5000ms milliseconds, giving up.
2019-06-27T13:39:56.353-0700 W NETWORK [thread1] Unable to reach primary for set Cluster0-shard-0
2019-06-27T13:39:56.627-0700 I NETWORK [thread1] Successfully connected to cluster0-shard-00-00-jxeqq.mongodb.net:27017 (1 connections now open to cluster0-shard-00-00-jxeqq.mongodb.net:27017 with a 0 second timeout)
2019-06-27T13:40:01.921-0700 W NETWORK [thread1] Failed to connect to 34.205.152.216:27017 after 5000ms milliseconds, giving up.
2019-06-27T13:40:06.922-0700 W NETWORK [thread1] Failed to connect to 52.4.238.74:27017 after 5000ms milliseconds, giving up.
2019-06-27T13:40:06.923-0700 W NETWORK [thread1] Unable to reach primary for set Cluster0-shard-0
2019-06-27T13:40:12.497-0700 W NETWORK [thread1] Failed to connect to 34.205.152.216:27017 after 5000ms milliseconds, giving up.
2019-06-27T13:40:17.500-0700 W NETWORK [thread1] Failed to connect to 52.4.238.74:27017 after 5000ms milliseconds, giving up.
2019-06-27T13:40:17.501-0700 W NETWORK [thread1] Unable to reach primary for set Cluster0-shard-0
2019-06-27T13:40:17.501-0700 E QUERY [thread1] Error: Could not find host matching read preference { mode: “primary”, tags: [ {} ] } for set Cluster0-shard-0 :
connect@src/mongo/shell/mongo.js:263:13
@(connect):1:6
exception: connect failed
It seems like something is wrong on the server side. I was able to use Compass to connect but not with Mongo Shell.