I've spent a bunch of time scanning these (and other) forums for how to remedy the following situation but to no avail. Hopefully someone can share their expertise!
At my University, I'm on a Linux machine (Scientific Linux 7) with
$ which xauth /bin/xauth
I would like to (a) run GUI apps from my (remote) Macbook (with
XQuartz present), and (b) have them show up on this Linux machine.
When I run
ssh -o ForwardX11=yes email@example.com
, I'm prompted for my Mac's password; when I enter it, I get my Mac's terminal. When I look around in this terminal, I'm able to access my Mac's files. This part is all well and good.
However, if I attempt to run a Mac (GUI-based) program via the Mac's terminal (as seen on the Linux machine), the GUI opens on the Mac and not on the Linux machine. For example, running
from the Mac's terminal (as seen on the Linux machine) opens TeXStudio's GUI on the Mac and not on the Linux machine! This, of course, is problematic, as it means that (a) seems to be achieved but (b) has failed.
On the Mac, my
/etc/ssh/sshd_config file contains the following lines:
X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no # XAuthLocation added by XQuartz (http://xquartz.macosforge.org) XAuthLocation /opt/X11/bin/xauth
; however, I've also tried it with
X11UseLocalhost yes to no avail.
Note, too, that x11 seems to be "doing its job," because if I run something like
xclock (in the Mac terminal on the Linux machine), I get the eyes/clock showing up (on the Linux machine).
Am I missing something obvious here?
- I can't make any changes to the Linux machine I'm using: It's part of a major-specific Linux computing lab, and no sort of installation/"backend file" manipulation can be done.
- I'm using my university's secure Wi-Fi, both on the Linux machine AND on the Mac.