I am trying to use pymongo to connect to a mongo database.
I have been given: DB_name DB_username DB_password DB_port SSH_address SSH_username mongo RSA private key (.pem file)
I have tried running
from pymongo import MongoClient
client = MongoClient(host=SSH_address,
port=DB_port,
username=DB_username,
password=DB_password)
client.list_database_names()
but get a timed out
error.
How can I pass the remaining information (such as the RSA private key) to MongoClient
, so that I can successfully connect?