If you run into this error:
# sshuttle -r user@remotehost -v 192.168.0.0/24 Starting sshuttle proxy. Listening on ('127.0.0.1', 12300). firewall manager ready. c : connecting to server... user@remotehost's password: s: latency control setting = True Traceback (most recent call last): File "<string>", line 1, in <module> File "assembler.py", line 26, in <module> File "server.py", line 168, in main File "server.py", line 68, in list_routes File "server.py", line 47, in _list_routes File "ssubprocess.py", line 606, in __init__ File "ssubprocess.py", line 1117, in _execute_child OSError: [Errno 2] No such file or directory c : fatal: server died with error code 1
the culprit is simply the missing netstat program on the target host. sshuttle tries to fork a netstat process without checking if netstat is installed on the target host in the first place.
On a Fedora host netstat comes with the net-tools
package:
yum install net-tools
Thanks, this probably saved me about 2 hours of debugging!
Had this issue with my newly provisioned digitalocean CentOS 7 vps.