X session in Git Bash on Windows?

后端 未结 6 2019
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 13:20

I\'m using Git Bash on Windows. I have used Git Bash to SSH into a UNIX machine and tried to run a program with a GUI. I got the message: LINUX/UNIX system detected, but unable

6条回答
  •  花落未央
    2021-02-19 13:42

    Your problem is, that you somehow have to carry over the XAuthority data to the remote host. Normally SSH does this for you, but only if it's started with the right environment variables. Basically you need to figure out the location of the xauth data and put that path into the XAUTHORITY environment variable. The DISPLAY is most likely ":0.0".

    I think the most straightforward solution was using Cygwin and the X11 server it ships, because the X startup script of it will open a xterm from which you can SSH to the remote machine.

提交回复
热议问题