ssh forwarding from macOS quartz X11 error

when i ssh to a linux host from my mac using ssh -C -X linuxhost, and try to open an xterm i get this error message

bash-3.2$ xterm
xterm: Xt error: Can’t open display: /private/tmp/com.apple.launchd.vIXw1YlUUE/org.macosforge.xquartz:0

WORKAROUND: before ssh, export DISPLAY=:0 in the mac

Leave a Reply

Your email address will not be published. Required fields are marked *