TIP: SSH add a tunnel to a running session

Useful tip - if you’ve ever been ssh’d into a remote machine and don’t want to break the connection or open a new session just to add a new tunnel, there is a way

Press [return] then ~ then C to get to an ssh> prompt, then you can add tunnels as you would at the command line e.g. -L 80:localhost:8080

Then press [return] to return to the session you were running. Cool trick.


Tags: linuxsshcommand linebashtip