Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Package xauth in MSYS2 to support 'ssh -X' and 'runx' #3146

Closed
mviereck opened this issue Aug 16, 2022 · 4 comments
Closed

Comments

@mviereck
Copy link

mviereck commented Aug 16, 2022

I provide a script called runx that allows to run X server VcXsrv in MSYS2 (and in Cygwin and WSL, too).

By default runx creates an X authentication cookie for access restriction.
The default linux tool for X authentication cookie setup is xauth.
runx itself can create a cookie on its own without the help of xauth, but uses xauth nonetheless if available.

But if one wants to use ssh -X or ssh -Y, the connection fails because ssh depends on /usr/X11R6/xauth. (Found in mviereck/runx#7).

My feature request: Please provide package xauth in MSYS2 to support runx and in turn ssh -X.


Additional notes:

  • Package xauth in Cygwin: https://cygwin.com/packages/summary/xauth.html
  • VcXsrv provides an xauth.exe on its own, but it is somehow broken and I could not get valid cookies from it. I would prefer an xauth package in MSYS2.
  • I've seen that @eine is involved in MSYS2, too. He is a user of runx and might support my request.
@Biswa96
Copy link
Member

Biswa96 commented Aug 16, 2022

Unfortunately, we can not. See https://www.msys2.org/

the main focus of MSYS2 is to provide a build environment for native Windows software and the Cygwin-using parts are kept at a minimum.

@mviereck
Copy link
Author

Ok, I understand that you want to keep the focus.
Thank you for looking at this!

@1480c1
Copy link
Contributor

1480c1 commented Aug 16, 2022

The ideal would probably be a mix of cygwin and msys2's focus, so that those wishing to be able to use their linux native code can use that, but also benefit from the packages and windows specializations that msys2 provides through pacman and patches and compilers. But that would probably not be very easy, unless somehow it's possible to use pacman directly from msys2 and use the packages within cygwin without issues. I personally would like to be able to use a x11 server other than VcXsrv that could potentially be up-to-date too, since I think my current installation of VcXsrc uses an outdated version of x11's code compiled with msvc and does not support some things automatically like x11 over ssh and pulseaudio through ssh+x11. I currently need to export DISPLAY to localhost:0.0 for ssh to pick up on it

@mviereck
Copy link
Author

mviereck commented Aug 19, 2022

I want to note that with the great help of @esaulenka I was able to use xauth.exe from VcXsrv.
So I don't need xauth in MSYS2 anymore and revoke my package request.

Now it is possible with runx to run ssh -X or x11docker in MSYS2 with X server VcXsrv and cookie authentication.

@Biswa96 Biswa96 closed this as completed Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants