Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RDP to existing infrastructure #10121

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

Open
djarbz opened this issue Oct 7, 2023 · 8 comments
Open

RDP to existing infrastructure #10121

djarbz opened this issue Oct 7, 2023 · 8 comments
Labels
networking Area: networking

Comments

@djarbz
Copy link

djarbz commented Oct 7, 2023

I have seen bits and pieces that better RDP support is being worked on and I'd like to throw this out for consideration.

My goal would be to pre-deploy the Coder Agent on specific servers that shouldn't behave like disposable workspaces. These may be pre-existing VMs or even physical machines.

The Coder Agent would also allow for users to RDP into them similar to a RDP gateway.
If the user does not have a domain credential linked to the server, a local user would be created, potentially with specific group membership such as Local Administrator.

@cdr-bot cdr-bot bot added the feature label Oct 7, 2023
@matifali
Copy link
Member

matifali commented Oct 8, 2023

I am not sure about Windows RDP but if you are looking for using existing Linux machines as Coder workspaces you can probably give this ssh provider a try.

@djarbz
Copy link
Author

djarbz commented Oct 9, 2023

Thanks for the comment, specifically, I was looking for Windows servers.
I also understand if this would be out of scope for this project, but I thought the infrastructure is kind of there for a privileged Remote Desktop Gateway type setup for secured servers, not necessarily for end users so much as for Sysadmins to access protected machines.

I will look into that SSH provider for alternative purposes though, thank you for that.

@spikecurtis spikecurtis added the networking Area: networking label Oct 9, 2023
@lapnd
Copy link

lapnd commented Jan 19, 2024

Hi @matifali
Do you mean that using SSH Provider, we can attach/register pre-existing Linux/Container/VM as Coder workspace?
I have a list of machines that already running and looking for away to "register" them as workspaces on coder. Coder as single interface to access all of them.
If it is, can you give more hints on how to implement that
Thank you

@matifali
Copy link
Member

Hi @lapnd you can look into https://registry.terraform.io/providers/loafoe/ssh/latest/docs/resources/resource to see how you can run a script in a remote ssh host. To manage it as a coder workspace you need to run the coder_agent's init_script and set the CODER_AGENT_TOKEN.

@lapnd
Copy link

lapnd commented Jan 21, 2024

Thank you @matifali
I'm able to make it work by refer your link and this example https://github.com/bpmct/coder-templates/tree/main/shared-mac

@matifali
Copy link
Member

@lapnd great. The template is a bit outdated. But good to hear that you are able to make use of it.

@kylecarbs
Copy link
Member

Closing in favor of #2106

@kylecarbs
Copy link
Member

Actually, that was kinda different, so reopening.

We're working on improving Windows support with RDP.

@kylecarbs kylecarbs reopened this Apr 26, 2024
@matifali matifali removed the feature label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
networking Area: networking
Projects
None yet
Development

No branches or pull requests

5 participants