How to enable X11 forwarding in PyCharm SSH session?

前端 未结 3 2098
感情败类
感情败类 2020-12-23 12:24

The Question

I\'m trying to enable X11 forwarding through the PyCharm SSH Terminal which can be executed via

         


        
3条回答
  •  梦毁少年i
    2020-12-23 12:33

    Update 2020: I found a very easy solution. It may be due to the updated PyCharm version (2020.1).

    1. Ensure that X11Forwarding is enabled on server: In /etc/ssh/sshd_config set
    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost no
    
    1. On client (MacOS for me): In ~/.ssh/config set
    ForwardX11 yes
    
    1. In PyCharm deselect Include system environment variables. This resolves the issue that the DISPLAY variable gets set to the system variable.

    EDIT: As seen in the below image it works. For example I used the PyTorch implementation of DeepLab and visualize sample images from PASCAL VOC:

提交回复
热议问题