Saturday, October 6, 2018

X-Forwarding via SSH with Win10 and XcSvrc

Linux (Ubuntu) Server Core 16.04


sudo nano /etc/ssh/sshd_config
 
#add the below 2 lines 
X11Forwarding yes 
X11UseLocalhost no 

#!restart the SSH server
sudo service sshd reload
 
From the logs of the XcXsrv gather correct DISPLAY= value
 
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
winClipboardThreadProc - DISPLAY=127.0.0.1:0.0 <<<<<<<<<<<<<<<<<<<<<<<<<
OS maintains clipboard viewer chain: yes

Add the X Server value into yours Putty configuration :

 env DISPLAY=hostname:10.0
 
 
You can verify with:
 
xauth list
env | grep DISPLAY
 
 
Unset incorrect enviroment variable:
 
env --unset DISPLAY 

No comments:

Post a Comment

Thank you for your comment. Will try to react as soon as possible.

Regards,

Networ King