title: MongoDB disable access for just connecting through shell
body: <p>I've been searching the documentation for MongoDB and also Stackoverflow for a while and haven't found any good way to fix this issue.</p>
  
  <p>I have created an admin user and and some other users for my MongoDB server in EC2, however, when I'm connecting I can always connect with no username or password (yes I have <code>auth=true</code> in the config file).</p>
  
  <p>As I understand it MongoDB's default behavior is to allow connections and then using <code>db.auth()</code> or something but can I disable the default behavior so you have to authenticate when you do <code>mongo --host=xx.xx.xx.xx...</code>?</p>
  
  <p>Thanks,</p>
  
  <p>Johan</p>