The remote SSH server rejected X11 forwarding request.
解決辦法:yum install xorg-x11-font* xorg-x11-xauth
遠(yuǎn)程主機(jī)是 OpenSSH
編輯/etc/ssh/sshd_config
設(shè)置X11Forwarding yes
取消勾選

image.png
1.首先修改配置文件
1.1遠(yuǎn)程主機(jī)是 OpenSSH
編輯 /etc/ssh/sshd_config,
設(shè)置 X11Forwarding yes
遠(yuǎn)程主機(jī)是SSH.COM
編輯/etc/ssh2/sshd2_config
設(shè)置 AllowX11Forwarding yes
其原因是可能對(duì)openssh版本進(jìn)行了升級(jí)。
解決方法為:
yum install xorg-x11-font* xorg-x11-xauth
/etc/ssh/sshd_config文件中
X11Forwarding參數(shù)為yes
再將UseLogin參數(shù)為no,可能這一行最開(kāi)始是被注釋?zhuān)サ糇⑨尲纯山鉀Q。