Skip to content

How to use SSH port forwarding with Robo 3T

Gökhan Şimşek edited this page Jul 7, 2020 · 2 revisions

Workaround Solution for SSH connection problems

// with password
ssh -L 27018:192.168.3.28:27017 user@192.168.3.28
(ssh -L localport:mongodb_ip:port user@ssh_server_ip)

// with private key
ssh -i temp/priv_key.pem -L 27018:192.168.3.48:27017 user@192.168.3.48
(ssh -i /path/to/private_key.pem -L localport:mongodb_ip:port user@ssh_server_ip)
// For Windows, Putty (or another SSH client) can be used with the same logic.

Go to Robo 3T, create connection with localhost:27018

(Note: No need to enable SSH on Robomongo, SSH tunnel is handled by terminal.)