title: How to copy a record from one mongo collection to another mongo collection which are residing on different hosts which are accessible via ssh
body: <p>I have two Mongo Instances on different hosts (dev &amp; stage) which can be accessible via ssh.</p>
  
  <p>How to copy a record from the collection on <strong>dev</strong> instance and insert it into the <strong>stage</strong> instance?</p>
  
  <p><strong>Steps tried:</strong></p>
  
  <p>Tried to use mongodump and mongorestore, but not of any use because my mongo instances are accessible via SSH.</p>