X11 Forwarding not working

I've installed XQuartz (2.8.5) in my MacBook Pro 14' (M2 Pro), but both ssh and local terminal aren't able to successfully display X11 window. I used xclock to test and the followings are the output:


[local terminal] xclock

[local terminal] Error: Can't open display: /private/tmp/com.apple.launchd.54blW9m02C/org.xquartz:0


[ssh] ssh -X username@ip

[ssh] xclock

[ssh] Error: Can't open display:


My OSX version is 13.5.1, and for the ssh I've tried with MobaXterm with a Windows machine and it works without any error.


Thanks in advance for any support!

MacBook Pro 14″, macOS 13.5

Posted on Sep 6, 2023 12:16 AM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

X11 Forwarding not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.