Unable to connect to mongo shell

Hello Everyone,

I used the following command and got this error. Can anyone please let me know what mistake did I make.
mongo “mongodb+srv://sandbox.iosmt.mongodb.net/myFirstDatabase” --username m001-student

The error
</myFirstDatabase" --username m001-student
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://sandbox-shard-00-02.iosmt.mongodb.net.:27017,sandbox-shard-00-00.iosmt.mongodb.net.:27017,sandbox-shard-00-01.iosmt.mongodb.net.:27017/myFirstDatabase?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-tore7v-shard-0&ssl=true
2021-02-23T07:20:04.484+0000 I NETWORK [js] Starting new replica set monitor for atlas-tore7v-shard-0/sandbox-shard-00-02.iosmt.mongodb.net.:27017,sandbox-shard-00-00.iosmt.mongodb.net.:27017,sandbox-shard-00-01.iosmt.mongodb.net.:27017
2021-02-23T07:20:04.533+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to sandbox-shard-00-01.iosmt.mongodb.net.:27017 (1 connections now open to sandbox-shard-00-01.iosmt.mongodb.net.:27017 with a 5 second timeout)
2021-02-23T07:20:04.536+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] changing hosts to atlas-tore7v-shard-0/sandbox-shard-00-00.iosmt.mongodb.net:27017,sandbox-shard-00-01.iosmt.mongodb.net:27017,sandbox-shard-00-02.iosmt.mongodb.net:27017 from atlas-tore7v-shard-0/sandbox-shard-00-00.iosmt.mongodb.net.:27017,sandbox-shard-00-01.iosmt.mongodb.net.:27017,sandbox-shard-00-02.iosmt.mongodb.net.:27017
2021-02-23T07:20:04.545+0000 I NETWORK [js] Successfully connected to sandbox-shard-00-00.iosmt.mongodb.net.:27017 (1 connections now open to sandbox-shard-00-00.iosmt.mongodb.net.:27017 with a 5 second timeout)
2021-02-23T07:20:04.564+0000 I NETWORK [js] Successfully connected to sandbox-shard-00-00.iosmt.mongodb.net:27017 (1 connections now open to sandbox-shard-00-00.iosmt.mongodb.net:27017 with a 5 second timeout)
2021-02-23T07:20:04.597+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to sandbox-shard-00-02.iosmt.mongodb.net:27017 (1 connections now open to sandbox-shard-00-02.iosmt.mongodb.net:27017 with a 5 second timeout)
2021-02-23T07:20:04.614+0000 I NETWORK [js] Marking host sandbox-shard-00-00.iosmt.mongodb.net:27017 as failed :: caused by :: SocketException: can’t authenticate against replica set node sandbox-shard-00-00.iosmt.mongodb.net:27017 :: caused by :: socket exception [CONNECT_ERROR] server [sandbox-shard-00-00.iosmt.mongodb.net:27017] connection pool error: network error while attempting to run command ‘isMaster’ on host ‘sandbox-shard-00-00.iosmt.mongodb.net:27017
2021-02-23T07:20:04.615+0000 I NETWORK [js] Marking host sandbox-shard-00-02.iosmt.mongodb.net:27017 as failed :: caused by :: SocketException: can’t authenticate against replica set node sandbox-shard-00-02.iosmt.mongodb.net:27017 :: caused by :: socket exception [CONNECT_ERROR] server [sandbox-shard-00-02.iosmt.mongodb.net:27017] connection pool error: network error while attempting to run command ‘isMaster’ on host ‘sandbox-shard-00-02.iosmt.mongodb.net:27017
2021-02-23T07:20:04.621+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to sandbox-shard-00-01.iosmt.mongodb.net:27017 (1 connections now open to sandbox-shard-00-01.iosmt.mongodb.net:27017 with a 5 second timeout)
2021-02-23T07:20:04.671+0000 I NETWORK [js] Marking host sandbox-shard-00-01.iosmt.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set master [sandbox-shard-00-01.iosmt.mongodb.net:27017], err: Location8000: bad auth : Authentication failed.
2021-02-23T07:20:04.694+0000 I NETWORK [js] Marking host sandbox-shard-00-01.iosmt.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set master [sandbox-shard-00-01.iosmt.mongodb.net:27017], err: Location8000: bad auth : Authentication failed.
2021-02-23T07:20:04.695+0000 E QUERY [js] Error: can’t authenticate against replica set node sandbox-shard-00-01.iosmt.mongodb.net:27017 :: caused by :: can’t connect to new replica set master [sandbox-shard-00-01.iosmt.mongodb.net:27017], err: Location8000: bad auth : Authentication failed. :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

Thanks in advance,

Thanks,
Anand

Bad authentication means wrong combination of userid & password

When it prompts give the pwd you registered at the time creating your cluster
If you have problems in entering pwd pass it as a parameter along with your connect string using --password