[排错] 解决 Linux 运行 ssh -X 命令时报错 “X11 forwarding request failed on channel 0”

报错代码

X11 forwarding request failed on channel 0

解决方法

如果是 CentOS Linux 7 & RHEL 7 & Rocky Linux 8 & RHEL8:

# yum install xauth

如果是 Rocky Linux 8 & RHEL 8:

# dnf install xauth

如果是 openSUSE & SLES:

# zypper install xauth