`AttributeError: module 'os' has no attribute 'fork'` error when using `--auto-hosts` on windows host machine
Author: DetachHeadCreated Mar 7, 2026Updated Mar 7, 2026
$ sshuttle 127.0.0.1 --auto-hosts --remote-shell=cmd -r "username@redacted"
c : Connected to server.
Traceback (most recent call last):
File "<string>", line 1, in <module>
import sys, os; verbosity=0; stdin = os.fdopen(0, 'rb'); exec(compile(stdin.read(1785), 'assembler.py', 'exec')); sys.exit(98);
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "assembler.py", line 51, in <module>
File "sshuttle.server", line 416, in main
File "sshuttle.ssnet", line 612, in runonce
File "sshuttle.ssnet", line 500, in callback
File "sshuttle.ssnet", line 488, in handle
File "sshuttle.ssnet", line 432, in got_packet
File "sshuttle.server", line 348, in got_host_req
File "sshuttle.server", line 142, in start_hostwatch
AttributeError: module 'os' has no attribute 'fork'
c : fatal: ssh connection to server (pid 128326) exited with returncode 1Source: sshuttle/sshuttle