for VNC, HTTP, and other applications and protocols
Author: William M. Hartung
Date: 04/13/2005
SSH provides a protected means to access remote hosts and networks. It is much more secure than FTP file transfer, since passwords in FTP are sent in plain text, and data is not encrypted. SSH provides various forms of encryption to provide protection at the highest levels of security by todays technological standards. It is also a great way to provide site protection by opening up only one port (SSH port 22), and allowing a client to access other services behind the router/firewall. Opening up all of the ports that would be accessed at the router/firewall level can pose a much higher threat for invasion.
Example:
ssh -1 -L 5901:localhost:5900 -p 4567 joe@10.5.1.3
Where…
Note - you can also add this, however it is a privileged port only available for root
-L 80:localhost:80