I had to tunnel through a dev server to connect to a remote database. Link https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding