I have two servers (Both running CentOS 5.5 64-Bit)
One server is connected to a public network and has a public IP address which I can use to SSH into it remotely. The other server is connected to Server 1 through a private network.
I would like to know how I can forward a port (say 20222) on server 1 to port 22 on server 2 so that I can connect to server 2 using any SSH client by using the public IP of server 1 and port 20222.
The public network of server 1 is connected through interface eth0 and private network is connected through eth1
Thanks a lot.
Regards, Kalpesh