Skip to content
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

cli, core: support invoking remote commands #1185

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

bjia56
Copy link
Collaborator

@bjia56 bjia56 commented Nov 14, 2023

Allow npx scrypted shell to send a remote command and arguments to the TerminalService, instead of just running the shell. Also preserves the buffer format for noninteractive use since the string conversion breaks binary communication over the channel.

Tested with the following, which provides an ssh tunnel over this connection:
socat -d -d -d tcp-listen:50505,fork,reuseaddr,nodelay exec:"node ./dist/packages/cli/src/main.js shell localhost\:10443 -- socat - tcp\:localhost\:22"

@koush koush merged commit 772bfec into koush:main Nov 15, 2023
@bjia56 bjia56 deleted the npx-scrypted-remote-cmd branch November 15, 2023 05:41
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.

2 participants