Wednesday, August 17, 2011

Reverse SSH Tunnel

Reverse SSH Tunnel can be used to connect office computer from home computer. Suppose you issued following command on your office computer.

root#ssh -R 2048:localhost:22

In above given statement , home computer 2048 port become open to connect office computer port no 22.

Now issue following command on home computer.

root#ssh -p 2048 localhost

This will connect remote computer through ssh.