それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

ssh/rsyncで`Warning: No xauth data; using fake authentication data for X11 forwarding.`

rsyncssh でwarning が出るようになった。

Warning: No xauth data; using fake authentication data for X11 forwarding.

原因

~/.ssh/config にX11の設定をしている
xauth のPATHがわからない。~/.Xauthorityがない

対応1

x11 の設定を消す。(XQuratz)を使わないのであれば。

Host sever-1
    Hostname 192.168.2.5
    #ForwardX11 yes
    #ForwardX11Trusted yes
    #XAuthLocation /opt/X11/bin/xauth

対応2

X11を使うなら、.Xauthority の設定をやり直す。

rm  ~/.Xauthority*
open -a XQuartz.app
xauth generate $DISPLAY
ls  .Xauthority*
echo $DISPLAY

設定をやり直す。

~/.ssh/config

Host sever-1
    Hostname 192.168.2.5
    ForwardX11 yes
    ForwardX11Trusted yes
    XAuthLocation /opt/X11/bin/xauth

参考資料

https://sonotaropp.hatenablog.com/entry/2019/07/22/154545