NetBSD: X11 Forwarding over SSH

I installed NetBSD 4.0.1 under VMware Fusion 2.0.1 on my OS X 10.5 box, and I had a heck of a time getting X11 forwarding working. I was getting the sshd configuration slightly wrong. Anyway, on the server I edited /etc/ssh/sshd_config:
X11Forwarding yes
X11DisplayOffset 10
# X11UseLocalhost yes
XAuthLocation /usr/X11R6/bin/xauth
Then I ran:
rm /home/jj/.Xauthority
/etc/rc.d/sshd restart
To login from my Mac, I ran:
ssh -YA jj@
Viola! xterm now works!


Peter Marks said…
I just use ssh -X
Gabor Garami said…
There is a little difference between -X and -Y, because the Y is "Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls."

The -A is always good idea.