X11 forwarding request failed on channel 0

前端 未结 4 758
日久生厌
日久生厌 2021-02-07 01:24

When I do \"ssh -X abcserver\", I got message \"X11 forwarding request failed on channel 0\". I checked online and it was suggested to solve it by swit

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 01:33

    I had to edit the sshd config file on the remote server to fix the issue. It worked on Ubuntu 16.04 Server:

    $ sudo vim /etc/ssh/sshd_config

    Set X11UseLocalhost no

    Save the file.

    $ sudo service sshd restart

    $ exit

    Now it works!

    ssh -X user@remotehost
    $ xclock

提交回复
热议问题