Profile
Login to mongo shell with authentication
mongo --port 27017 --authenticationDatabase "admin" -u "admin" -p

 

Basically, see https://docs.mongodb.com/manual/tutorial/enable-authentication/ for more details.