I'm new to ssh tunneling. I'm trying to access a database from developer machine, which is accessible only from my production server.
I am able to open an SSH connection to the production server from the developer machine, but I don't know how to tunnel the remote database port using production server to developer machine.
I have tried the following with no success
ssh -L 9999:remote_database:5432 user@production_server
Any hint is appreciated.