ssh <user>@<SERVER> -N -L 3306:127.0.0.1:3306
Host MasterServerSQL
Hostname x
User y
IdentityFile ~/.ssh/id_ed25519
LocalForward 3306 localhost:3306
ControlPath ~/.ssh/control-%h-%p-%r
ssh -MNf MasterServerSQL, y desconectar con ssh -O exit MasterServerSQL (mirar MasterControl + MasterPath para más detalles, ControlMaster no deja de ser un método de conexión compartida)Host Dreamhost-mysql-tunnel Hostname x User y IdentityFile ~/.ssh/id_ed25519 LocalForward 3310 <remote_server>:3306 ControlPath ~/.ssh/control/control-%h-%p-%r
ssh <user>@<SERVER_C> -L localport:<SERVER_B>:remoteport
ssh <user>@<SERVER_C> -N -L localport:<SERVER_B>:remoteport