Mongodb + JavaDriver, connection to EC2 instance using ssh

7 views
Skip to first unread message

Igors Paparemskis

unread,
Feb 9, 2015, 6:44:54 AM2/9/15
to mongodb-us...@googlegroups.com
Good afternoon.  I'm using Mongodb 2.6.7 + Java driver ( IntelliJ).

Presently i have cluster RF5 4 inst.+1arbiter.  I would like to connect to my primary using ssh, but  i don't have any idea how to do it...

to connect to local host i'm using -
MongoClient client = new MongoClient( new ServerAddress("localhost", 27003)), but  how can i made connection to concert IP address using my xxx.pem key?

Thank You in advance, hope for quick reply .
Reply all
Reply to author
Forward
0 new messages