VineSeedでxorgを上げたらsshでX Forwardingできなくなった

ssh に -v オプションを付けて実行すると

debug1: Remote: No xauth program; cannot forward with spoofing.

というエラーが出ていたので、 xauth が見つからないことが原因のようだ。

xauth は /usr/bin/xauth に存在していたが、 sshd が探す場所はデフォルトでは /usr/X11R6/bin/xauth らしい。
そこで、 /etc/sshd_config に XAuthLocation で xauth のパスを明示的に指定したら X Forwarding できるようになった。