What Do I Do If Xshell Fails to Connect to an ECS and "WARNING! The remote SSH server rejected X11 forwarding request." Is Displayed?
Symptom
Xshell fails to connect to an ECS, and the error message "WARNING!The remote SSH server rejected X11 forwarding request." is displayed. The following figure shows the error details.

Possible Causes
The OpenSSH version is upgraded.
Solution
- Log in to the ECS.
- Edit the /etc/ssh/sshd_config file.
vi /etc/ssh/sshd_config
- Modify the following configuration items:
- Change the value of X11Forwarding to yes.
- Delete the comment tag (#) from the UseLogin parameter and change the value to no.
The following figure shows the modification result.

- Run the following command to restart the SSH service:
- Run the following command to install the xorg-x11-xauth software package:
yum install xorg-x11-xauth
- Restart the ECS.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot