xauth & sshの再設定

環境が変わったのでSSH & X周りの環境設定やり直し.
EmacsなどでXを飛ばしての起動ができなくなったので
http://www.openssh.com/ja/faq.html#3.13
と'man ssh_config'を参考に$HOME/.ssh/configに

ForwardX11 yes
ForwardX11Trusted yes

な2行を追加(上1行は従来'ssh -X'してた分).下1行は'ssh -Y'でもいけるけど.
あと,なぜかsshの際にxauth周りのwarningが出るようになったのでxauth再設定.これと'man xauth'参考.

xauth remove :0
xauth add :0 . feadfeadfead

feadfeadfeadの部分は適当に読み替えてね,っと.
最後にXのクライアントに.Xauthorityコピって終わりと.

xauth extract - :0 | ssh -x hostname xauth merge -