-
Notifications
You must be signed in to change notification settings - Fork 810
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
X11 forward option in daytona ssh #1206
Comments
@bryans-go thanks for opening this issue. Everything in the description makes sense. One thing we should avoid is bundling multiple issues into one. More specifically,
This can be its own issue.
And this can be its own issue. Please split those up so it's easier to track and discuss. |
Done |
New Quest!A new Quest has been launched in @daytonaio’s repo. Loot of 20 USD has been stashed in this issue to reward the solver! 🗡 Comment ⚔️ When you submit a PR, comment Questions? Check out the docs. |
@quest-bot embark |
Hi @Tpuljak , do I need to make it compatible for macOS, linux, and Windows? I would like to work on this.. But I guess it's open for all, right?? If not assign me this 🙂 @quest-bot embark |
@RS-labhub no need to get assigned. You're free to work on it of course.
That's correct. |
starting to work on it! |
Oh wait.. someone is already working on it... Sorry @bryans-go, I didn't know about it.. Just going to the threads now and saw it. Nevermind, but are you still working on it? Loll, I don't know how to cancel my attempt! |
Hey @Tpuljak the changes should be made in the daytona/pkg/ssh file right ? whatever new commits need to be done. |
I don't think so. I think a new option needs to be added to the ssh config that we add (https://github.com/daytonaio/daytona/blob/main/cmd/daytona/config/ssh_file.go). I'm not completely sure so you'll need to test this out yourself. |
@bryans-go any further update on this? If not let me start working on it? |
@Abiji-2020 feel free to open a PR. I'm still working on it but couldn't find a solution for it. |
In this we need to implement the client or server i.e we need to run a remote GUI app in the daytona or we need to forward the daytona server to be connected from external server?? |
@Abiji-2020, what would be the use case for connecting the daytona server from an external server? |
@bryans-go can correct me if I'm wrong, but I believe the use case for X11 forwarding would be that users can run GUI application inside a Daytona project and them being able to view the app when connected via SSH. |
@Tpuljak Exactly ! Thanks for this because a lot of users are not aware about this functionality of ssh. |
Note: the current ssh server implementation lacks support for X11 requests. |
@bryans-go are you saying that the lib that we use for SSH does not have support for X11 or is it simply lacking from our implementation? |
I meant that the lib (gliders/ssh) doesn't have direct support or inbuilt support for x11, we can do a workaround using crypto ssh (gossh) to implement x11 request handler in our ssh server implentation |
If there's a way to "inject" that functionality without completely rewriting the SSH server, then I don't see why not. |
Add support for X11 forwarding via a flag in the daytona ssh command (e.g., -X or -Y)**
Description:
Daytona CLI currently does not support X11 forwarding for SSH connections, making it difficult to run GUI applications remotely.
For reference, a useful guide on enabling X11 forwarding is available here. It outlines configurations for both Linux and MacOS, and there's also a guide for Windows.
Solution:
Users should be able to pass a flag to
daytona ssh
to enable X11 forwarding, or receive steps on how to configure it manually.Note: the current ssh server implementation lacks support for X11 requests.
https://github.com/daytonaio/daytona/tree/main/pkg/agent/ssh
The text was updated successfully, but these errors were encountered: