Skip to content

feat: add support for X11 forwarding #2

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

Merged
merged 1 commit into from
Apr 21, 2023
Merged

feat: add support for X11 forwarding #2

merged 1 commit into from
Apr 21, 2023

Conversation

kylecarbs
Copy link
Member

No description provided.

@kylecarbs kylecarbs requested a review from mafredri April 20, 2023 02:26
@kylecarbs kylecarbs self-assigned this Apr 20, 2023
session_test.go Outdated
@@ -7,6 +7,7 @@ import (
"net"
"testing"

"golang.org/x/crypto/ssh"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dope!

@@ -353,6 +367,23 @@ func (sess *session) handleRequests(reqs <-chan *gossh.Request) {
close(sess.winch)
}()
req.Reply(ok, nil)
case "x11-req":
if sess.handled || sess.x11 != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should single connection affect this or is it unrelated to x11-req?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be unrelated. I believe x11 is the only thing that should respect SingleConnection.

@kylecarbs kylecarbs merged commit 04bb837 into master Apr 21, 2023
@kylecarbs kylecarbs deleted the x11 branch April 21, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants