SSH: Tunnel multiple ports to remote server
Posted
by
user1594322
on Server Fault
See other posts from Server Fault
or by user1594322
Published on 2013-07-03T04:01:43Z
Indexed on
2013/07/03
5:07 UTC
Read the original article
Hit count: 602
See attached diagram.
- Host A - Windows server
- Host B - Linux server
- Host C - VMWare ESXi server
From host A I can SSH to host B over the VPN tunnel. I can ping host C from host B, but not from host A. I am assuming this is because host C has lost its default gateway.
Host C is a VMWware ESXi server, so I would need to tunnel several ports (80,443,902) in order to reach host C from host A.
What is the correct ssh syntax to create the tunnel in order to reach host C from host A, and can I do it using a single command, or do I need to run three commands (one for each port, 80,443,902)?
© Server Fault or respective owner