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 to access X11 display
.
I have X-Win 32 (commercial). I've also used Xming which is like a free version of X-Win 32 but has problems with certain graphics.
Is there a way I can get this remote system to access my X11 display through X-Win 32 or Xming or through any way ?
I'd just like to run programs like MATLAB, with a GUI popping up, from UNIX machines, when SSH'ed into that machine via Git Bash on Windows.
I also have PuTTY and Secure Shell Client installed, but would prefer to work exclusively form Git Bash because it requires less buttons to press in order to ssh to other machines.
If it's impossible to get this working on Git Bash I'd like to get it working with PuTTY (Secure Shell Client is good but has discontinued updates permanently).
Open the Start menu by clicking on the Windows icon and typing “Git Bash” into the search bar. The icon for Git Bash and the words “Git Bash Desktop App” will appear. Click on the icon or the words “Git Bash Desktop App” to open Git Bash.
Git Bash application provides and emulation layer for Git command line. Apart from Git commands, Git Bash also supports many Bash utilities such as ssh, scp, cat, find etc. In other words, you can run many common Linux/Bash commands using the Git Bash application.
This Q is rather old, but anyway...
I was (at last...) able to get this working using the ssh
command from Git for Windows
and XMing
. All I had to do was to set the DISPLAY
environment variable to localhost:0.0
(it was set to only :0.0
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With