ssh X11 forwarding won't work

前端 未结 5 1948
礼貌的吻别
礼貌的吻别 2020-12-29 09:47

I have been trying to get X11 port forwarding to work from my laptop. I can\'t figure out why it won\'t work.

I get this message when I try to run xterm:

         


        
5条回答
  •  旧时难觅i
    2020-12-29 10:26

    I got the same issue on a Debian OpenVZ container and the problem seemed to come from my /etc/hosts file where "localhost" was affected to the LAN IP, not 127.0.0.1.

    Before :

    192.168.0.15  dagi dagi.domain.net localhost localhost.localdomain
    

    After :

    192.168.0.15  dagi dagi.domain.net
    127.0.0.1     localhost localhost.localdomain
    

    After that, both ssh -X and ssh -Y worked like a charm without even restarting sshd.

提交回复
热议问题