Ubuntu: X11 forward to putty

Installation
download http://cygwin.com/setup-x86_64.exe
install X11 package

configure /etc/ssh/sshd_config
sudo grep -nri X11 /etc/ssh
X11Forwarding yes
X11DisplayOffset 10

Cygwin-X config
make sure XWin Server shortcat contains the command below:
F:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; /usr/bin/startxwin -- -listen tcp"

configure putty
- goto Connection -> SSH -> X11
- check "Enable X11 forwarding", save putty session
- fill in "X display location": localhost:0
- start putty
- start from windows start menu: Cygwin-X -> XWin Server (this will create windows - .Xauthority)
- close putty (won't close till closing XWin Server too!)
- goto again Connection -> SSH -> X11
- fill in "X authority file for local display" with the local windows-path (e.g: F:\cygwin64\home\******.*****\.Xauthority), save putty session
- close putty

run it (order below is important)
- start from windows start menu: Cygwin-X -> XWin Server
- start putty

run it (only when having throubles)
- start putty
- xauth list
- run "xauth add" with any line from "xauth list" output (e.g. xauth add adr-desktop/unix:11  MIT-MAGIC-COOKIE-1  erhe5j56jefhere4hr4j5jrthdte4yergerher)
- close putty (won't close till closing XWin Server too!)
- start from windows start menu: Cygwin-X -> XWin Server
- start putty

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.