I am using xquartz to login to an Ubuntu server from a Mac machine. After logging in using ssh -X <username>@<ip>
command, I am trying to launch nautilus
but it keeps giving the following error:
Unable to init server: Could not connect: Connection refused
(nautilus:14914): Gtk-WARNING **: 14:05:38.090: cannot open display: 0:0
Ideally, xquartz should have set the appropriate display accordingly. But some problem is happening. I also tried the following command:
launchctl load -w /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
but no success.