X11 Forwarding through SSH
Guide for setting up X11 Forwarding from Linux to Windows through SSH.
- Install & Run Xming X Server for Windows
- Set the
DISPLAYenvironment variable:- Windows:
set DISPLAY=localhost:0.0 - PowerShell:
$env:DISPLAY="localhost:0.0"
- Windows:
- Double check the environment variable:
- Windows:
echo %DISPLAY% - PowerShell:
echo $env:DISPLAY
- Windows:
- Connect to Linux server (such as a Ubuntu Desktop) through SSH:
ssh -Y <user_name>@<server_name>ssh -Yshould only connect to a trusted Linux server. - Check the environment variable on the Linux server:
echo $DISPLAY - Launch a X11 application:
xeyesor
glxgears
Comments are configured with provider: disqus, but are disabled in non-production environments.