title: How to convert these pipe with tar pigz commands into ssh remote execute?
body: <p>Linux command, manually open terminal and execute command, no issue
  Yes. I want to put something like this:
      (nc -l 8400 | pigz -d | tar xvf - )&amp;</p>
  
  <p>How to make it run by ssh remote execute? </p>
  
  <p>it works if terminal is keeping open.
  but it won't work if I exit terminal after typing the command or execute remotely through ssh client '(nc -l 8400 | pigz -d | tar xvf - )&amp; '</p>
  
  <p>When I execute command through ssh, error message is " tar: This does not look like a tar archive "</p>
  
  <p>ok. I fixed the problem by myself based on help from Jonathan and blog ( <a href="http://pen-testing.sans.org/blog/2013/05/06/netcat-without-e-no-problem/comment-page-1/" rel="nofollow">http://pen-testing.sans.org/blog/2013/05/06/netcat-without-e-no-problem/comment-page-1/</a> )</p>
  
  <p>on client: mkfifo /tmp/pipe0</p>
  
  <pre><code>ssh -f client " bash -c ' mkfifo /tmp/pipe0; cd /tmp/test; ( /bin/sh 0&lt;/tmp/pipe0 | nc -l 8400 | pigz -d | tar xf - )' 
  </code></pre>
  
  <p>Thanks!</p>