[OpenIndiana-discuss] Problems with netcat zfs receive

James Carlson carlsonj at workingcode.com
Tue Sep 11 12:33:49 UTC 2012

Florian wrote:
> /root at oi151a6-1:~# ssh -n -f "/usr/bin/nc -l -p 1337 |
> /usr/sbin/zfs receive -F tank/raid1-2"/

Try "nc -dl -p 1337" instead of just "-l".  The problem is that the ssh
"-n" flag provides /dev/null on stdin, rather than a tty, and that
confuses netcat.  The netcat "-d" option tells it to ignore stdin.

James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>

More information about the OpenIndiana-discuss mailing list