So you want to ssh from the mac to your own Linux, and have some graphical apps you launch over the ssh connection pop up in your Mac?
Yes, Macs are indeed somewhat "Unix machines"..I do use Macs occasionally, but never X11 forwarding on them. Nevertheless, here's how the procedure usually goes (note that the Linux machine, sshd server, needs to have an X server up and running):
1) in your Linux machine make sure sshd is running (so you can ssh to it). Make sure that /etc/ssh/sshd_config has
That line must be uncommented (if it is commented, like it usually is by default) and the possible 'no' changed to 'yes'. After this sshd needs to be restarted. Something like
Code:
/etc/init.d/sshd restart
depending on the Linux distribution.
2) Now that the ssh server lets you use X11 forwarding, connect to it and tell the client to enable X11 forwarding also. Some clients may have X11 forwarding enabled by default, others maybe not. Make sure you're using the right options; on the ssh that's used on Linux operating systems, it's (with capital X)
Code:
ssh -X username@machine.ip.address.here
after this try running a simple app:
if an ugly clock pops up on your Mac, it's working -- if not, then you need to go trough the configurations once more (check that your client really enabled X11 forwarding, and that your server lets you use it). Some security configurations may restrict access to X server (but in that case it's up to you to make enough holes to the rules to let you use it), but on normal installations that's not the case. You can probably try to read
on your Mac to see if it's got some information about what ssh program it's using and if it's the -X option (in capitals) that enables X11 forwarding. You could also first test the X11 forwarding with a Windows machine using PuTTY (it's settings have a checkbox to enable X11 forwarding) or just another Linux machine (with ssh -X). If you get it working from a Windows/Linux machine first, then you'll know it's the Mac - or if no machine works, you know it's not necessarily the Mac that's doing nasty things