I recetly upgraded from Fedora 38 to Fedora 39 which bumps the python version from 3.11.6 to 3.12.
This change has the terminal output of running sshuttle hanging, i.e. CTRL+C not working, pasting not working. I discovered this on my upgraded system, and to rule out any local configuration issues, I booted up a liveiso with fedora 39 workstation, and the issue persisted there:
Then I tinkered with python 3.11, but getting this error running sshuttle as a non-root user (I don’t know how to actually fix this in python 3.11):
Starting sshuttle proxy.
Traceback (most recent call last):
File "/home/user/.local/lib/python3.11/site-packages/sshuttle/__main__.py", line 4, in <module>
sys.exit(main())
^^^^^^
File "/home/user/.local/lib/python3.11/site-packages/sshuttle/cmdline.py", line 26, in main
return firewall.main(opt.method, opt.syslog)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.11/site-packages/sshuttle/firewall.py", line 97, in main
stdin, stdout = setup_daemon()
^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.11/site-packages/sshuttle/firewall.py", line 68, in setup_daemon
os.setsid()
PermissionError: [Errno 1] Operation not permitted
fatal: ['sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', 'PYTHONPATH=/home/user/.local/lib/python3.11/site-packages', '/usr/bin/python3.11', '/home/user/.local/lib/python3.11/site-packages/sshuttle/__main__.py', '-v', '--method', 'auto', '--firewall', '--syslog'] returned 1
Then I got root working with pip and python 3.11 and my script wrapping sshuttle is now working as expected (I also tried this on the liveISO with 3 reboots trying sshuttle 0.78, sshuttle version 1.1.1 from pip and sshuttle version 1.1.1 from dnf):
My question is therefore, how can we get a working sshuttle on python 3.12? Any temporary fix available or a permanent fix for python 3.12? I can technically get this to work as is on version 3.12, but I need to paste stuff into the terminal (as I was able to do before, and in the last example as root) and it’s an unwanted behavior.

