{"id":1737,"date":"2014-02-01T22:09:57","date_gmt":"2014-02-01T20:09:57","guid":{"rendered":"http:\/\/raftaman.net\/?p=1737"},"modified":"2021-05-15T11:46:37","modified_gmt":"2021-05-15T09:46:37","slug":"sshuttle-error-file-ssubprocess-py-line-1117-in-_execute_child","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1737","title":{"rendered":"sshuttle error: File &#8220;ssubprocess.py&#8221;, line 1117, in _execute_child"},"content":{"rendered":"<p>If you run into this error:<\/p>\n<pre class=\"brush: bash; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# sshuttle -r user@remotehost -v 192.168.0.0\/24\r\nStarting sshuttle proxy.\r\nListening on ('127.0.0.1', 12300).\r\nfirewall manager ready.\r\nc : connecting to server...\r\nuser@remotehost's password: \r\n s: latency control setting = True\r\nTraceback (most recent call last):\r\n  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;\r\n  File &quot;assembler.py&quot;, line 26, in &lt;module&gt;\r\n  File &quot;server.py&quot;, line 168, in main\r\n  File &quot;server.py&quot;, line 68, in list_routes\r\n  File &quot;server.py&quot;, line 47, in _list_routes\r\n  File &quot;ssubprocess.py&quot;, line 606, in __init__\r\n  File &quot;ssubprocess.py&quot;, line 1117, in _execute_child\r\nOSError: &#x5B;Errno 2] No such file or directory\r\nc : fatal: server died with error code 1\r\n<\/pre>\n<p>the culprit is simply the missing <tt>netstat<\/tt> program on the target host. <tt>sshuttle<\/tt> tries to fork a <tt>netstat<\/tt> process without checking if <tt>netstat<\/tt> is installed on the target host in the first place.<\/p>\n<p>On a Fedora host <tt>netstat<\/tt> comes with the <code>net-tools<\/code> package:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install net-tools\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you run into this error: # sshuttle -r user@remotehost -v 192.168.0.0\/24 Starting sshuttle proxy. Listening on (&#8216;127.0.0.1&#8217;, 12300). firewall manager ready. c : connecting to server&#8230; user@remotehost&#8217;s password: s: latency control setting = True Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;assembler.py&quot;, line 26, in &lt;module&gt; File &quot;server.py&quot;, line 168, in main File &quot;server.py&quot;,&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1737\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,15],"class_list":["post-1737","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fedora","tag-ssh"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1737"}],"version-history":[{"count":4,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1737\/revisions"}],"predecessor-version":[{"id":2192,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1737\/revisions\/2192"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}