Skip to content

Add support to for running commands in workspace via coder ssh workspace [command] #2154

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

Closed
Tracked by #10759
mafredri opened this issue Jun 8, 2022 · 5 comments
Closed
Tracked by #10759
Labels
api Area: HTTP API cli Area: CLI

Comments

@mafredri
Copy link
Member

mafredri commented Jun 8, 2022

Feature request

Add support to for running commands in workspace via coder ssh workspace [command] where [command] is immediately run on the workspace instead of a login shell.

This feature should behave like ssh coder.workspace [command].

(I'm writing this as a feature request, although I do think it could classify as a bug/missing core functionality.)

Are there any workarounds?

Yes, use ssh instead of coder ssh.

Notes

There are other limitations to coder ssh as well, like not reading standard input, for instance:

❯ coder ssh work <<<'echo hi'
inappropriate ioctl for device

❯ ssh coder.work <<<'echo hi'
hi

I think for coder ssh to be the most useful, it should have greater feature parity with plain ssh.

@mafredri mafredri added feature cli Area: CLI labels Jun 8, 2022
@misskniss misskniss added needs grooming api Area: HTTP API labels Jun 14, 2022
@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the stale This issue is like stale bread. label Aug 19, 2022
@mafredri mafredri removed the stale This issue is like stale bread. label Aug 19, 2022
@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the stale This issue is like stale bread. label Oct 22, 2022
@mafredri mafredri removed the stale This issue is like stale bread. label Oct 27, 2022
@github-actions

This comment was marked as outdated.

@github-actions github-actions bot added the stale This issue is like stale bread. label Dec 27, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2023
@mafredri
Copy link
Member Author

Re-opening due to: #10364

@mafredri mafredri reopened this Oct 23, 2023
@mafredri mafredri removed the stale This issue is like stale bread. label Oct 23, 2023
@giovanidiniz
Copy link

+1
This would be huge for my use case.
I'm currently working on a wrapper around the ssh command in python to achieve the same functionality, but it seems to me it would make sense to enable that through the CLI.

@github-actions github-actions bot added the stale This issue is like stale bread. label Apr 22, 2024
@matifali matifali removed the stale This issue is like stale bread. label Apr 22, 2024
@bpmct bpmct closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API cli Area: CLI
Projects
None yet
Development

No branches or pull requests

6 participants