Last updated on

MongoDB is a document-oriented cross-platform database program and it is a leading NoSQL database. In the previous post, we explain how to install MongoDB on Ubuntu 18.04. In this post, we are going to explain how to enable authentication on MongoDB.

If you are running the MongoDB in production then you must enable the authentication. It will secure your server from Ransomware attacks.

Connect to the MongoDB server using the mongo shell