Atlas connection issue

Hello Guys,

When I am trying to connect course atlas cluster I am getting this error. Please help me to solve this problem.

C:\Program Files\MongoDB\Server\4.0\bin>mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl -u m121 -p aggregations --norc
MongoDB shell version v4.0.5
connecting to: mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?authSource=admin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0
2019-04-12T17:25:57.391+0530 I NETWORK [js] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017
2019-04-12T17:25:58.261+0530 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-02-jxeqq.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-jxeqq.mongodb.net:27017 with a 5 second timeout)
2019-04-12T17:25:59.350+0530 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to cluster0-shard-00-01-jxeqq.mongodb.net:27017 (1 connections now open to cluster0-shard-00-01-jxeqq.mongodb.net:27017 with a 5 second timeout)
2019-04-12T17:26:03.084+0530 W NETWORK [js] Unable to reach primary for set Cluster0-shard-0
2019-04-12T17:26:04.048+0530 I NETWORK [js] Successfully connected to cluster0-shard-00-02-jxeqq.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-jxeqq.mongodb.net:27017 with a 0 second timeout)
2019-04-12T17:26:10.997+0530 W NETWORK [js] Unable to reach primary for set Cluster0-shard-0
2019-04-12T17:26:17.553+0530 W NETWORK [js] Unable to reach primary for set Cluster0-shard-0
2019-04-12T17:26:24.112+0530 W NETWORK [js] Unable to reach primary for set Cluster0-shard-0
2019-04-12T17:26:24.120+0530 E QUERY [js] Error: Could not find host matching read preference { mode: “primary”, tags: [ {} ] } for set Cluster0-shard-0 :
connect@src/mongo/shell/mongo.js:328:clock1130:

Thanks!

I am able to connect with command you gave

MongoDB Enterprise Cluster0-shard-0:PRIMARY> db
aggregations

MongoDB Enterprise Cluster0-shard-0:PRIMARY> show collections
air_airlines
air_alliances


May be firewall issues?
Are you able to ping the server