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

Add single-command mechanism #127

Open
virtuald opened this issue Dec 26, 2024 · 3 comments
Open

Add single-command mechanism #127

virtuald opened this issue Dec 26, 2024 · 3 comments

Comments

@virtuald
Copy link
Member

Should add something to allow users to execute a single arbitrary command, so that when we need them to do something manual we can just give them a command instead of "figure out how to ssh to your machine and do this".

@Suave101
Copy link

Suave101 commented Jan 5, 2025

Maybe we could implement a command called something like ssh or manual using a socket connection and supports arguments for the lvuser account and for the admin account. From there a SSH console opens up so that the user can make changes on the roborio without Putty.

Should I open a Pull Request working on the following suggestions?

@virtuald
Copy link
Member Author

virtuald commented Jan 5, 2025

Implementing a fully interactive ssh session correctly is a lot more work than it sounds and I suspect would involve a lot of maintenance over time. If a user needs a fully interactive ssh session then why wouldn't they just use an SSH client?

Generally, users shouldn't need to SSH into the robot directly when using RobotPy, and when they need that then it's a good opportunity for them to learn how to do that.

The thought that I had with this issue is that very often we'll tell users "run such a command on the rio to fix something or tell us something about the rio", and in those limited situations it's really inconvenient to tell a user how to setup an SSH client. Implementing something that can execute a single command is extremely simple and would make those sorts of user/support interactions much easier to manage.

If you want to implement the single command thing, happy to review it.

@auscompgeek
Copy link
Member

without Putty

Windows ships with the OpenSSH client, so nobody needs PuTTY to SSH anyway.

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

No branches or pull requests

3 participants