blacknon / go-sshlib

easy ssh library for golang
MIT License
37 stars 12 forks source link

[Feature Request] X11Forward supports the same feature as `openssh -Y`. #33

Closed lonnywong closed 4 months ago

lonnywong commented 5 months ago

Is X11Forward exactly the same as openssh -X?

Is it possible to add an option to support the same feature as openssh -Y?

blacknon commented 5 months ago

I think it was probably applied in Issue #30.

lonnywong commented 5 months ago

Thanks. In fact, I don't know how openssh implements trusted and untrusted X11 forwarding.

blacknon commented 4 months ago

Sorry, I guess I didn't quite understand "ssh -Y" either. "ssh -Y" seems to be different from PR #30.

blacknon commented 4 months ago

Reference Note:

Function passing options.forward_x11_trusted which is the difference between -Y/-X in openssh.

https://github.com/openssh/openssh-portable/blob/88351eca17dcc55189991ba60e50819b6d4193c1/clientloop.c#L290-L451

Looking at the code above, it seems like the difference is not in the signals passed to the server side, but in the way X authentication information is handled on the local host side. 🤔

lonnywong commented 4 months ago

@blacknon Thanks.