SSH Tunneling

How to tunnel with SSH

This sets up forwarding and returns you to your local shell
ssh -Nf -p (port) (user)@(firsthop) -L (localporttobind):(secondhop):(port)

Now if you ssh to localhost on localporttobind

example ssh -p 9000 localhost

you will be forwarded to your secondhop

Comments

Popular Posts