Mac OS X X11 GUI forwarding...
In these days of Apple Remote Desktop or Windows Remote Connection is easy to forget about the tried and true X forwarding. For people like me that somethings needs to check the output in the form of a graph forwarding is very useful. However, Mac OS X has this feature disable by default. Here is how to enable it:
sed 's/#X11Forwarding\ no/X11Forwarding\ yes/' /etc/sshd_config > /tmp/sshd_config
sudo mv /tmp/sshd_config /etc/.
You may need to logout or even restart but after that everything will work just fine.
PS: use the ssh with the flag -Y to ensure proper forwarding.
sed 's/#X11Forwarding\ no/X11Forwarding\ yes/' /etc/sshd_config > /tmp/sshd_config
sudo mv /tmp/sshd_config /etc/.
You may need to logout or even restart but after that everything will work just fine.
PS: use the ssh with the flag -Y to ensure proper forwarding.
Comments
.ssh/config:
Host *
ForwardX11 yes
Explanation, taken from the gentoo wiki:
-X vs -Y
ssh -X is also known as secure X11-forwarding: it's secure, i.e., the server(running sshd) won't be able to spy on the client (key-logging etc...) ssh -Y is also known as insecure X11-forwarding: it's not secure but it can run more applications
Also, you may wish to use compression to speed things up.
ssh user@remotebox -YC
-or-
ssh user@remotebox -XC
Is there some magic to telling it where to display it? Normally with linux, the applications just appear on my desktop when I X11 forward them.
FYI I'm on an ubuntu desktop, mac is osx lion and I tried with both -X and -Y but both have same behaviour for me, application starts can be seen in process list but output is displayed on the monitor of mac not forwarded to my linux desktop :(