A Secure Shell (SSH) tunnel consists of an encrypted tunnel created through an SSH protocol connection. Users may set up SSH tunnels to transfer unencrypted traffic over a network through an encrypted channel.
Host A : Can’t connect cPanel port 2086 of Host B. Behind firewall connection that restricts outgoing port 2086.
Host B : cPanel server
Creating SSH tunneling from Host A
ssh -f -N -p8288 root@HostB -L 1188:HostB:2086
-N flag means do not execute a remote command.
-f flag instruct ssh to go to background just before command execution.
Creating SSH tunneling through Putty.
After that, connect to HostB. Keep the tunnel session active by running top command.
With this tunneling, I can connect to HostB WHM although outgoing port 2087 is blocked at local connection.