title: How to connect MongoDB Shell with the external replicaset
body: <p><a href="https://i.stack.imgur.com/pAsIy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pAsIy.png" alt="enter image description here" /></a></p>
  <p>As it can be seen from the screenshot that the MongoDB shell is connected to the localhost. I want to connect it with an external replica set like this(given below) for my study purpose. But could not do so. Please suggest a way out.</p>
  <pre><code>&quot;mongodb://m121:aggregations@cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?repilicaset=cluster0-shard-0&quot; --authenticationDatabase admin --ssl -u m121 -p aggregations --norc
  </code></pre>