How to prevent warnings like No xauth data when doing ssh from OS X to other machines?
Solution 1:
Put XAuthLocation=/opt/X11/bin/xauth
in /etc/ssh/ssh_config
.
Solution 2:
I see it's an old question but for the sake of Google, here is my answer.
On the Mac, you can create an alias in ~/.bashrc like so:
alias ssh='ssh -o "XAuthLocation=/opt/X11/bin/xauth"'
If you also share the .bashrc across both OS X and other unixy machines, you could add a little stanza to the .bashrc as follows:
if [ `uname` == 'Darwin' ]; then
alias ssh='ssh -o "XAuthLocation=/opt/X11/bin/xauth"'
fi