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:30] deullinux:putty [2024/09/27 08:36] (current) jansen
Line 1: Line 1:
 +====== SSH from Powershell ======
 +In current versions of Windows, ssh is available from within Powershell.
 +In that case, you do not need a separate ssh client. This will work more or less the same as ssh from Linux and MacOS.
 +
 +Also see: [[ssh:tipsandtricks|SSH tips and tricks]]
 +
 ====== 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 25:
 {{ :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 34:
  
 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.jpg?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 |}}
  
 +7. You will be presented with a login screen to the graphical enviroment of ''hostname''. Login with yous STRW username and password combination.
 +
 +==== End the Tunnel ====
 +After you are done, exit from the graphical enviroment by logging out from ''hostname'' and closing the associated window. This will end the vnc viewer. 
 +
 +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%%''.
  
-That is it!+{{ :linux:putty2.png?nolink&500 |}}
  
 ==== See also ==== ==== See also ====
   * [[http://putty.org]]   * [[http://putty.org]]
   * [[http://realvnc.org]]   * [[http://realvnc.org]]
linux/putty.1467973855.txt.gz · Last modified: by deul