Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1114

Unable to connect to a mongodb hosted on AWS using SSH tunnel, SSH User and .pem cert

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: CLI Module
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      Problem Statement/Rationale

      We have a MongoDB instance hosted on AWS to which we connect using:

       - host, port, DB name, username and password and

       - SSH tunnel address, SSH User and .pem certificate

       How can we configure the mongosh to support this connectivity?

       

      Steps to Reproduce

      Provision a mongodb instance on AWS using the connectivity described above.

      Expected Results

      Able to connect and run queries against a AWS hosted mongodb instance.

      Actual Results

      ```
      Current Mongosh Log ID: 62015933bd186556d0acb6cd
      Connecting to: mongodb://docdb-xxxxxxxxxx.cluster-xxxxxx.us-east-2.docdb.amazonaws.com:27017/dbname?tls=true&directConnection=true&appName=mongosh+1.1.9
      MongoNetworkError: getaddrinfo ENOTFOUND docdb-xxxxxxxxxx.cluster-xxxxxx.us-east-2.docdb.amazonaws.com



      ```

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            moraru_costel@yahoo.com Costel Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: