The remote SSH server rejected X11 forwarding request.
解決辦法:yum install xorg-x11-font* xorg-x11-xauth
遠程主機是 OpenSSH
編輯/etc/ssh/sshd_config
設置X11Forwarding yes
取消勾選
image.png
1.首先修改配置文件
1.1遠程主機是 OpenSSH
編輯 /etc/ssh/sshd_config,
設置 X11Forwarding yes
遠程主機是SSH.COM
編輯/etc/ssh2/sshd2_config
設置 AllowX11Forwarding yes
其原因是可能對openssh版本進行了升級。
解決方法為:
yum install xorg-x11-font* xorg-x11-xauth
/etc/ssh/sshd_config文件中
X11Forwarding參數為yes
再將UseLogin參數為no磕诊,可能這一行最開始是被注釋侠畔,去掉注釋即可解決。