Fyeox LLC Logo

Fyeox LLC

Linux Operational Consulting & Services

Updated instructions on ssh-tunnels

YMMV but here is the generic outline

Basic outline was originally something like this:


## SSH Tunneling
# RJ Ent, 23 December 2007 (created 28 November 2007)
# Tunneling through firewalls to service equipment is easier with ssh if firewall is running ssh. As an example consider:
# A - remote computer
# B - ssh server
# C - target machine, behind firewall
## Now if you want to tunnel from A port 7777 <=> C port 22 you would do:

ssh  -L 7777:C:22  userID@B

## Then in a new terminal try:
ssh -p 7777 userID@C


However there was a small typo in the original.

This line ssh -p 7777 userID@C  should have been ssh -p 7777 userID_on_targetC@localhost