2013-02-16

SSH via intermediate host

In terminal on local machine:

$ ssh -f -N -L6969:localhost:6969 intermeduser@intermedhost
$ ssh intermeduser@intermed
intermedhost$  ssh -f -N -L6969:localhost:22 destuser@desthost

Then, in other local terminals:

$ ssh -p 6969 destuser@localhost