Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
docs:ssh:ssh_tunneling [2007/02/02 20:19] – billh | docs:ssh:ssh_tunneling [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SSH Tunneling ====== | ||
+ | //for VNC, HTTP, and other applications and protocols// | ||
+ | |||
+ | Author: | ||
+ | Date: 04/13/2005 | ||
+ | |||
+ | ===== Why use SSH? ===== | ||
+ | SSH provides a protected means to access remote hosts and networks. | ||
+ | |||
+ | ===== Putty configuration ===== | ||
+ | - The Putty application must be configured with a proper host name or IP address, and an SSH port number. | ||
+ | - Under the “Authentication” section, select “Enable Compression” to increase the speed of your connection when using applications such as VNC, as shown in Figure 2. Note that it is unclear as to whether Putty uses compression at protocol versions higher than version 1.\\ {{ssh.png|Figure 2}} | ||
+ | - Next, you must configure the “Tunnels” section of the Putty application. | ||
+ | - Lastly, you should go back to the “Sessions” section, and name and save your configuration options, or else you will have to enter them again. | ||
+ | |||
+ | ===== VNC configuration, | ||
+ | - Once an SSH (Putty) connection is established, | ||
+ | - Remember that using a VNC application through an SSH tunnel will be slower than using VNC independently. | ||
+ | |||
+ | |||
+ | |||
+ | ===== SSH Command Line Options ===== | ||
+ | Example: | ||
+ | < | ||
+ | ssh -1 -L 5901: | ||
+ | </ | ||
+ | Where... | ||
+ | * -1 is to force ssh version 1 | ||
+ | * 5900 is the vnc port on the host | ||
+ | * localhost is the computer we want to access (this could be another ip within the host's network if we want to control another computer) | ||
+ | * 5901 is the tunneled port on the client (Display 1 in VNC client) | ||
+ | * 80 is the standard http port - it is tunneled here to provide access to the web server on the client | ||
+ | * 4567 is a nonstandard port on the host or the host's router to access ssh | ||
+ | * joe is the user name | ||
+ | * 10.5.1.3 is the external ip address to access the host over the Internet | ||
+ | * after all of this, the client should be able to control a remote vnc server by accessing localhost: | ||
+ | |||
+ | Note - you can also add this, however it is a privileged port only available for root | ||
+ | < | ||
+ | -L 80: | ||
+ | </ | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | * If you have firewall (hardware or software), you may need to open up port 22 or the appropriate port for this to work. | ||
+ | |||
+ | |||
+ | |||