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

Enter sudo password when remote requests it #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpm-canonical
Copy link
Contributor

@jpm-canonical jpm-canonical commented Sep 5, 2024

Summary

When executing commands on the remote over SSH, it could happen that the remote asks for a sudo password. Monitor stderr for this prompt, and provide the password via stdin.

Related issues

canonical/chip-tool-snap#72

Testing steps

  • Run thread tests on a remote that asks for a sudo password - Ubuntu Desktop.
  • Run thread tests on a remote that does not ask for a sudo password - Ubuntu Server.

@jpm-canonical jpm-canonical marked this pull request as ready for review September 5, 2024 14:47
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.

1 participant