User Tools

Site Tools


linux:putty

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:putty [2016/07/08 10:48] deullinux: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't offer much in adddition to the commandline ssh program.+Putty is a graphical frontend for SSH, available for Windows and Linux. On Linux, it doesn't offer much in addition to the command line ssh program.
  
 ===== Connection setup ===== ===== Connection setup =====
Line 18: Line 18:
 {{ :linux:vnc1.jpg?nolink&300 |}} {{ :linux:vnc1.jpg?nolink&300 |}}
  
-3. Click the "Add" button, and you should see the new tunnel "L5900 hostname.strw.leidenuniv.nl:5901" in the "Forwarded Ports:" box.+3. Click the "Add" button, and you should see the new tunnel "L5901 hostname.strw.leidenuniv.nl:5901" in the "Forwarded Ports:" box.
  
 {{ :linux:vnc2.jpg?nolink&300 |}} {{ :linux:vnc2.jpg?nolink&300 |}}
Line 27: Line 27:
  
 5. To use this tunnel, log into your machine with Putty. Once logged in you need to start a vncserver on the remote machine. It will respond with the display number: 5. To use this tunnel, log into your machine with Putty. Once logged in you need to start a vncserver on the remote machine. It will respond with the display number:
-{{ :linux:putty1.png?nolink&300 |}}+{{ :linux:putty1.png?nolink&500 |}}
 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 on. 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 on.
  
-6. Then, bring up your VNC viewer and, for the VNC server that you want to connect to, type "localhost:port", where "port" is the port you're forwarding. In this case, it's "localhost:1". It will ask you for the password you have given in section 5. while starting the vncserver.+6. Then, bring up your VNC viewer and, for the VNC server that you want to connect to, type "localhost:port", where "port" is the port you're forwarding. In this case, it's "localhost:5901". It will ask you for the password you have given in section 5. while starting the vncserver.
  
 {{ :linux:vnc4.jpg?nolink&300 |}} {{ :linux:vnc4.jpg?nolink&300 |}}
Line 41: Line 41:
 Nou you are still left wit the open putty ssh session and its tunnel. But on the ''hostname'' the vncserver is still running, so we need to close that too. Type on the unix prompt : ''%%vncserver -kill :1 %%'' or whatever port number you have been assigned previously. This will end the vncserver session and now you are ready to logout the putty session by typing  on the unix command: ''%%exit%%''. Nou you are still left wit the open putty ssh session and its tunnel. But on the ''hostname'' the vncserver is still running, so we need to close that too. Type on the unix prompt : ''%%vncserver -kill :1 %%'' or whatever port number you have been assigned previously. This will end the vncserver session and now you are ready to logout the putty session by typing  on the unix command: ''%%exit%%''.
  
-{{ :linux:putty2.png?nolink&300 |}}+{{ :linux:putty2.png?nolink&500 |}}
  
 ==== See also ==== ==== See also ====
   * [[http://putty.org]]   * [[http://putty.org]]
   * [[http://realvnc.org]]   * [[http://realvnc.org]]
linux/putty.1467974880.txt.gz · Last modified: 2016/07/08 10:48 by deul