User authentication for connecting to robomongo

589 views Asked by At

I have a mongoDB server using v2.4.9. I need to connect to that server using robomongo in my localhost.

I have enabled auth=true in /etc/mongobd.conf and I have added the username and password in mongodb.php. When I login using robomongo to the remote server, it is connecting already through IP even though I have not prescribed anything in Authentication tab in robomongo. I want robomongo not to connect only through IP, but through both IP and username and password.

How can I do this?

1

There are 1 answers

2
Riya Saxena On

have you created the user with specifications of role and databaseName etc. in robomongo Refer to this link-> https://docs.mongodb.com/manual/reference/method/db.createUser/