This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:putty [2016/04/07 08:30] – jansen | linux:putty [2023/01/06 14:33] (current) – [Tunneling X-Windows over ssh using PuTTY] deul | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Putty ====== | ====== Putty ====== | ||
- | Putty is a graphical frontend for SSH, available for Windows and Linux. On Linux, it doesn' | + | Putty is a graphical frontend for SSH, available for Windows and Linux. On Linux, it doesn' |
===== Connection setup ===== | ===== Connection setup ===== | ||
Line 7: | Line 7: | ||
===== SSH tunnels ===== | ===== SSH tunnels ===== | ||
- | ===== Tunneling X-Windows over ssh using PuTTY ===== | + | ==== Tunneling X-Windows over ssh using PuTTY ==== |
Our firewall prohibits direct X-Windows connection between outside and inside machines. Normally, when using ssh from a Unix machine (outside) to a local Linux box (inside) will automatically setup X11-forwarding through a tunneling mechanism. This means that all local X11 requests are translated by ssh on both sides of the connection to, what is called, a tunnel in the ssh protocol. It is possible to run a similar setup when the outside machine is a Windows based OS. | Our firewall prohibits direct X-Windows connection between outside and inside machines. Normally, when using ssh from a Unix machine (outside) to a local Linux box (inside) will automatically setup X11-forwarding through a tunneling mechanism. This means that all local X11 requests are translated by ssh on both sides of the connection to, what is called, a tunnel in the ssh protocol. It is possible to run a similar setup when the outside machine is a Windows based OS. | ||
Line 13: | Line 13: | ||
Here is a quick step through to get the tunneling up and running: | Here is a quick step through to get the tunneling up and running: | ||
- | 1, Setup PuTTY: First, start up the program. When PuTTY first starts up, you see the sessions screen; you need to type in the information for the computer with which you wish to connect. Notice that I have typed in the hostname in the Host Name field, that I've selected the SSH protocol radio button, and that I've given the session a name that I will be saving to. However, don't save the session yet. | + | 1. Setup PuTTY: First, start up the program. When PuTTY first starts up, you see the sessions screen; you need to type in the information for the computer with which you wish to connect. Notice that I have typed in the hostname in the Host Name field, that I've selected the SSH protocol radio button, and that I've given the session a name that I will be saving to. However, don't save the session yet. |
+ | |||
+ | 2. Now, so far all we've done is created a session that we could use to log in and use the shell prompt. Next we need to tell PuTTY how we want to tunnel. On the left, under " | ||
{{ : | {{ : | ||
- | 2. Now, so far all we've done is created a session that we could use to log in and use the shell prompt. Next we need to tell PuTTY how we want to tunnel. On the left, under "Category", you' | + | |
+ | 3. Click the "Add" | ||
{{ : | {{ : | ||
- | 3. Click the "Add" | + | 4. All you have to do is click on "Session" |
{{ : | {{ : | ||
- | 4. All you have to do is click on " | + | 5. To use this tunnel, log into your machine with Putty. Once logged in you need to start a vncserver |
+ | {{ : | ||
+ | Verify that this display number corresponds with the one use have defined in the tunnel. If not, go back to 2. and add the correct tunnel. Leave the putty ssh session | ||
- | 5. To use this tunnel, log into your machine with Putty. Then, bring up your VNC viewer and, for the VNC server that you want to connect to, type " | + | 6. Then, bring up your VNC viewer and, for the VNC server that you want to connect to, type " |
{{ : | {{ : | ||
- | That is it! | + | 7. You will be presented with a login screen to the graphical enviroment of '' |
+ | |||
+ | ==== End the Tunnel ==== | ||
+ | After you are done, exit from the graphical enviroment by logging out from '' | ||
+ | |||
+ | Nou you are still left wit the open putty ssh session and its tunnel. But on the '' | ||
+ | |||
+ | {{ : | ||
==== See also ==== | ==== See also ==== | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// |