Skip to content

Instantly share code, notes, and snippets.

@ghoti143
ghoti143 / connect-remote-mongo-via-ssh-tunnel.md
Created August 24, 2018 01:28 — forked from umidjons/connect-remote-mongo-via-ssh-tunnel.md
Create ssh tunnel and connect to the remote mongo database on command line

Create ssh tunnel and connect to the remote mongo database on command line

Assume followings:

/mykeys/.ssh/prodserver.pem - is a certificate file

umid - is a user name

111.111.111.111 - is a remote host, that mongodb runs