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