I need some help. I am trying to use
ssh -X to connect to a remote server that has enabled X11 forwarding.
When I use my MacBook to connect to the remote server, I use
ssh -X USERNAME@SERVER and then if for example I type
matlab, it opens the XQuartz application on my MacBook and then the GUI of matlab opens. Perfect until here.
I now want to do the same but from a Windows machine. I first start the Xming program. I can see it at the bottom right corner running (I see
Xming Serve:0.0). When I repeat the above process, the matlab GUI does not open.
I also tried to connect using
ssh -v -X and after inserting my password I see this message among a lot:
debug1: X11 forwarding requested but DISPLAY not set
I tried to run (on my local terminal before ssh attempt):
SET DISPLAY=localhost:0.0 and then
echo %DISPLAY% returns
localhost:0.0 but still
ssh -X still does not open GUIs.
What is localhost and where can I find it? Any help?
Managed to solve this after being inspired by the comments.
Step 1: I right-clicked xming and opened its log. In there, I found an IP for the DISPLAY.
export does not exist on Windows so I used
ssh -X failed again but
ssh -Y worked!!!