-
Notifications
You must be signed in to change notification settings - Fork 725
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
sshuttle fails when different sudo message appears. #916
Comments
skuhl
added a commit
to skuhl/sshuttle
that referenced
this issue
Jan 1, 2024
When we use sudo and start the firewall process, we should be able to read standard in and find the string "READY". However, some administrators use a wrapper around sudo to print warning messages (instead of sudo's lecture feature) to standard out. This commit reads up to 100 lines looking for "READY" instead of expecting it on the first line. I believe this should fix issue sshuttle#916.
brianmay
pushed a commit
that referenced
this issue
Jan 1, 2024
When we use sudo and start the firewall process, we should be able to read standard in and find the string "READY". However, some administrators use a wrapper around sudo to print warning messages (instead of sudo's lecture feature) to standard out. This commit reads up to 100 lines looking for "READY" instead of expecting it on the first line. I believe this should fix issue #916.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running sshuttle on a manged Mac and it has a non-standard message that is printed every time that sudo is run. Sshuttle does not recognise this and exits with the error below
c : Unable to start firewall manager. Expected READY, got b'Approval Required: You are about to run this Sudo Command with administrative privileges. Please enter your password and press OK to proceed.\n'. Command=['/usr/bin/sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', 'PYTHONPATH=/opt/homebrew/Cellar/sshuttle/1.1.1/libexec/lib/python3.12/site-packages', '/opt/homebrew/Cellar/sshuttle/1.1.1/libexec/bin/python', '/opt/homebrew/bin/sshuttle', '-v', '--method', 'auto', '--firewall']
I do not have privileges to modify my sudo setup (at work anyway). Could there be a fix where it can parse any output from sudo and match the password prompt?
OS is Ventura 13.6.2 on Apple silicon and installed from homebrew.
The text was updated successfully, but these errors were encountered: