当我使用ssh -v -Y时,我得到了以下错误消息。服务器操作系统是mojave。有人知道怎么回事吗?
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Remote: No xauth program; cannot forward X11.
X11 forwarding request failed on channel 0发布于 2019-11-17 13:56:57
您的客户端和服务器都在抱怨他们找不到xauth程序。"debug1: No xauth程序“消息来自您的客户端,说它在本地找不到xauth的副本。"Remote: No xauth程序;不能转发X11“消息来自服务器,表示它也找不到xauth。客户端和服务器的默认位置都是/usr/X11R6/bin/xauth,尽管您的供应商可以更改它。
对于客户端,可以在。. .ssh/config中设置Xauth位置:
XAuthLocation /some/path/to/xauth对于服务器,必须在远程服务器的sshd_配置中设置位置:
XAuthLocation /opt/X11/bin/xauth修改配置后,您应该运行sshd -t来验证配置,然后重新启动sshd,使其重新读取文件。
发布于 2020-07-10 13:50:30
我不得不使用dnf安装xauth:
dnf install xauth然后一切都如期而至。对于较旧的Redhat系统,在上面的命令中使用'yum‘而不是'dnf’。
https://unix.stackexchange.com/questions/552601
复制相似问题