Followed all instructions verbatim except using own IP which is static. When I copy/paste and edit the string and enter the password I just get:
bash-4.4# mongo "mongodb+srv://sandbox.ookdy.mongodb.net/sandbox" --username m001-student
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://sandbox-shard-00-02.ookdy.mongodb.net.:27017,sandbox-shard-00-00.ookdy.mongodb.net.:27017,sandbox-shard-00-01.ookdy.mongodb.net.:27017/sandbox?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-y7n2pd-shard-0&ssl=true
2020-11-02T22:52:46.672+0000 I NETWORK [js] Starting new replica set monitor for atlas-y7n2pd-shard-0/sandbox-shard-00-02.ookdy.mongodb.net.:27017,sandbox-shard-00-00.ookdy.mongodb.net.:27017,sandbox-shard-00-01.ookdy.mongodb.net.:27017
2020-11-02T22:52:47.904+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:52:47.904+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-02T22:52:50.211+0000 W NETWORK [js] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:52:50.211+0000 I NETWORK [js] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2020-11-02T22:52:52.522+0000 W NETWORK [js] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:52:52.522+0000 I NETWORK [js] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-02T22:52:54.828+0000 W NETWORK [js] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:52:54.828+0000 I NETWORK [js] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-02T22:52:57.142+0000 W NETWORK [js] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:52:57.142+0000 I NETWORK [js] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-02T22:52:59.451+0000 W NETWORK [js] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:52:59.451+0000 I NETWORK [js] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-02T22:53:01.757+0000 W NETWORK [js] Unable to reach primary for set atlas-y7n2pd-shard-0
2020-11-02T22:53:01.757+0000 I NETWORK [js] Cannot reach any nodes for set atlas-y7n2pd-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-02T22:53:01.757+0000 E QUERY [js] Error: connect failed to replica set atlas-y7n2pd-shard-0/sandbox-shard-00-02.ookdy.mongodb.net.:27017,sandbox-shard-00-00.ookdy.mongodb.net.:27017,sandbox-shard-00-01.ookdy.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
I’ve tried adding a different user/password but the same thing happens.