Search code examples
sshputty

Converting a putty ssh tunnel to a command line one


I am trying to convert below putty configuration to a ssh command.

Putty Configuration

I do not understand the mysql5:3306 part. What is this mysql5 element and what is the corresponding command line option in the ssh command on Linux?


Solution

  • Apparently,

    ssh -N -L 3306:mysql5:3306 user@remote

    worked to establish the ssh tunnel.