What is the purpose of that
-w 3in the original solution
Evita que processos nc órfãos sejam executados no host remoto quando a sessão ssh é encerrada incorretamente.
and why is it causing a
Broken pipeerror when I use it?
Tente aumentar o tempo limite de nc para 90 e definir ServerAliveInterval para 30 para ver se o problema desaparece:
host foo
User webby
ServerAliveInterval 30
ProxyCommand ssh a nc -w 90 %h %p