on server
i have mongod instance running on server.
i created user on admin, using created user readwrite role on database wanted access.
updated mongo /etc/mongod.conf file:
commented out bind ip uncommented auth=yes restarted mongod using sudo service mongod restart
on client:
the db.auth(user,pass) command works fine on remote server, shows auth failure on client (my home system).
i made sure using correct database use mydb command.
ps. able connect mongo server using mongo xx.xx.xx.xx:27017 command. unable authenticate.
please help. mongo v3.0.3.
Comments
Post a Comment