Skip to main content
added 290 characters in body
Source Link

If you are doing ssh from Windows (10) to a Linux system - do yourself a favour and use a SSH client like Putty ( regular ssh -X etc does not work).

Step 1: Install a XServer in Windows : Example XMing Server (listens on localhost:0.0)

Step 2: In putty enable X11 forwarding

Step 3: Connect to remote Linux server

Make sure all conditions here are met in Linux server - that is X11Forwarding is yes and xauth is present as explained in the answer https://unix.stackexchange.com/a/12772/121634

fireFire up XClock and wait a minute for the display to appear in your Windows machine

Note - If from this Linux server you are connecting to another server and want to forward X11 back to your Windows, you just need to connect to the next in chain with ssh -X.

That is

[Windows] Putty (with X11forwarding) --> [Server1] (xclock works) --> ssh -X [Server 2] (xclock works)

enter image description here

If you are doing ssh from Windows (10) to a Linux system - do yourself a favour and use a SSH client like Putty ( regular ssh -X etc does not work).

Step 1: Install a XServer in Windows : Example XMing Server (listens on localhost:0.0)

Step 2: In putty enable X11 forwarding

Step 3: Connect to remote Linux server

Make sure all conditions here are met in Linux server - that is X11Forwarding is yes and xauth is present as explained in the answer https://unix.stackexchange.com/a/12772/121634

fire up XClock and wait a minute for the display to appear

enter image description here

If you are doing ssh from Windows (10) to a Linux system - do yourself a favour and use a SSH client like Putty ( regular ssh -X etc does not work).

Step 1: Install a XServer in Windows : Example XMing Server (listens on localhost:0.0)

Step 2: In putty enable X11 forwarding

Step 3: Connect to remote Linux server

Make sure all conditions here are met in Linux server - that is X11Forwarding is yes and xauth is present as explained in the answer https://unix.stackexchange.com/a/12772/121634

Fire up XClock and wait a minute for the display to appear in your Windows machine

Note - If from this Linux server you are connecting to another server and want to forward X11 back to your Windows, you just need to connect to the next in chain with ssh -X.

That is

[Windows] Putty (with X11forwarding) --> [Server1] (xclock works) --> ssh -X [Server 2] (xclock works)

enter image description here

Source Link

If you are doing ssh from Windows (10) to a Linux system - do yourself a favour and use a SSH client like Putty ( regular ssh -X etc does not work).

Step 1: Install a XServer in Windows : Example XMing Server (listens on localhost:0.0)

Step 2: In putty enable X11 forwarding

Step 3: Connect to remote Linux server

Make sure all conditions here are met in Linux server - that is X11Forwarding is yes and xauth is present as explained in the answer https://unix.stackexchange.com/a/12772/121634

fire up XClock and wait a minute for the display to appear

enter image description here