Setting up X11 forwading (the ability to run X11 applications on a remote computer) under MacOS X is quite simple. All the required components are already installed with MacOS X, or when you install the X11 package (or any other X11, like XDarwin or OroborOSX.)
These instructions are for a remote MacOS X machine, with substituions for other OSs in teal.
On the server (the remote machine), logged in as root (or using sudo):#X11Forwarding noX11Forwarding yes
Remote Login in the Sharing pane of System Preferences.kill -HUP `cat /var/run/sshd.pid`
ssh remote-host
ssh -X remote-host /usr/X11R6/bin/xterm
That's it! Nothing else. It really is that simple. See below to make it even easier.
xhost +xhost + only creates a security hole.Allow connections from network clients preference checkbox.xhost +, and offers no benefit. This really should be a hidden option.ps. See below for a secure way to connect — without passwords!You can make connecting to remote hosts even easier, by making a few changes to your ~/.ssh/config file, and by setting up public key authentication.