title: How to clone/copy MongoDB database from remote server to local?
body: <p>I am having trouble to copy database to my local computer from remote server.</p>
  
  <p>I use ssh to work on the remote machine. Database is not password protected. I tried to run on my local computer:</p>
  
  <pre><code>&gt; db.copyDatabase('DatabaseName', 'CopyName', 'ns35512048.ip-31-127-173.eu', 'root', 'server password');
  </code></pre>
  
  <p>and I get</p>
  
  <pre><code>{
  "ok" : 0,
  "errmsg" : "couldn't connect to server ns35512048.ip-31-127-173.eu:27017 (31-127-173.133), connection attempt failed"
  </code></pre>
  
  <p>}</p>
  
  <p>Can you please help :)</p>
  
  <p>EDIT:
  I ended up copying database manually.</p>