title: Setting up a remote MongoDB connection
body: <p>I've just found a development box which I can SSH into and I then installed MongoDB onto it and am connecting with pymongo. However when I try and connect I get a time out issue. My issue is how to set the credentials when I connect via the string:</p>
  
  <pre><code>client = MongoClient("mongodb://99.99.99.99/db_name")
  </code></pre>
  
  <p>Where can I set-up the SSH credentials or is it simply not possible to use a mongo server in this way? I'd like to be able to use <code>username:password</code> to get in, I saw something on ssh tunneling here:</p>
  
  <pre><code>https://www.digitalocean.com/community/tutorials/how-to-securely-configure-a-production-mongodb-server
  </code></pre>