X11 Forwarding on MAC OS X

 

install this:

On mac:

sudo vi /private/etc/sshd_config

設定這個:

X11Forwarding yes

enable x server
sudo xhost + remote.server.name

 

login to remote server
ssh -X username@remote.server.name

On remote server:
testing
xclock

 

PS: Install X11 server on OS X : http://xquartz.macosforge.org/landing/

 

 

 

Use fake X server
apt-get install xvfb
Xvfb -shmem -screen 0 1024x768x24 &

DISPLAY=:0 xclock