Differences between revisions 1 and 19 (spanning 18 versions)
Revision 1 as of 2009-06-25 21:17:54
Size: 694
Editor: 41-62
Comment:
Revision 19 as of 2018-10-09 12:52:38
Size: 1628
Editor: schadavi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= How can I connect to X-servers via Putty SSH or SSH Client? = #rev 2018-10-09 schadavi
Line 3: Line 3:
= How can I connect to X-servers via Putty SSH client? =
Line 4: Line 5:
PuTTY SSH: === Connection with VNC and SSH Port Forwarding through an SSH tunnel ===
 1. Use Putty to login to your Linux box/server.
 1. Launch a vncserver{{{
vncserver -geometry 1920x1080 # The first time you will be asked to set a VNC password
}}}
 1. Remember your session number. In the example below it is number '''1''':{{{
New 'X' desktop is mylinuxbox:1
}}}
 . Now you can exit your Putty SSH Terminal
.
 1. Open the PuTTY configuration window again
 1. Go to '''SSH''' >> '''X11''' in the left part of the window
 1. Check '''Enable X11 forwarding'''
 1. Go to '''SSH''' >> '''Tunnels''' and enter Source port: 590'''1'''. Furthermore add the following Destination: 127.0.0.1:590'''1'''
 1. Go back to '''Session''', enter a host name and a session name under "Saved Sessions" and click at "Save".
 1. Now start your VNC client and point to 127.0.0.1:590'''1''' and enter your VNC password from above.
 . Once your work is done and you would like to disconnect, enter the following command in a terminal on your Linux box/server{{{
vncserver -kill :1
}}}
Line 6: Line 25:
 1. Open the PuTTY configuration window in Start->Programs->Internet->PuTTY
 1. Choose SSH->Tunnels in the left part of the window
 1. Check 'Enable X11 forwarding' and enter 'localhost:0' in the X display location-window underneath
(!) In case of other running VNC servers, your session number could be higher than ''':1'''. In this case, go again through all the steps from above with the current session ID and change all numbers written in '''bold'''.
Line 10: Line 27:
SSH client:

 1. Open SSH client in Start->Programs->Internet->SSH client
 1. Open 'Settings..' in the Edit Menu
 1. Choose 'Tunneling' in the left part of the window
 1. Check !TunnelX11 connections

Alternaltively, you can install X-Win32 from Add/Remove Programs, the newest version has integrated ssh support, and allows you to setup a 'rlogin'-style directly.
For a more detailed HowTo, please have a look at [[FAQ/VNCUsage|VNCUsage]]<<BR>>
Alternatively, you can write us an email to support@ee.ethz.ch requesting a X-Server for Windows (please mention your computer).
----
[[CategoryWNCL]]

How can I connect to X-servers via Putty SSH client?

Connection with VNC and SSH Port Forwarding through an SSH tunnel

  1. Use Putty to login to your Linux box/server.
  2. Launch a vncserver

    vncserver -geometry 1920x1080    # The first time you will be asked to set a VNC password
  3. Remember your session number. In the example below it is number 1:

    New 'X' desktop is mylinuxbox:1
  4. Now you can exit your Putty SSH Terminal

.

  1. Open the PuTTY configuration window again
  2. Go to SSH >> X11 in the left part of the window

  3. Check Enable X11 forwarding

  4. Go to SSH >> Tunnels and enter Source port: 5901. Furthermore add the following Destination: 127.0.0.1:5901

  5. Go back to Session, enter a host name and a session name under "Saved Sessions" and click at "Save".

  6. Now start your VNC client and point to 127.0.0.1:5901 and enter your VNC password from above.

  7. Once your work is done and you would like to disconnect, enter the following command in a terminal on your Linux box/server

    vncserver -kill :1

(!) In case of other running VNC servers, your session number could be higher than :1. In this case, go again through all the steps from above with the current session ID and change all numbers written in bold.

For a more detailed HowTo, please have a look at VNCUsage
Alternatively, you can write us an email to support@ee.ethz.ch requesting a X-Server for Windows (please mention your computer).


CategoryWNCL

FAQ/ConnectToXServers (last edited 2018-10-09 12:54:19 by schadavi)