I use netcat to do the traffic forwarding during 3 machine(A->B->C) ssh tunneling. The proxy command from host A running on host B is like:
/usr/bin/ssh host_B nc localhost 19999
And there exists a tunnel between host_B:19999 and host_C:22
I would like to know what has been done by netcat. Where is the netcat log file? I tried to issue the below proxy command on A:
/usr/bin/ssh host_B nc -vv localhost 19999 > log.txt 2>&1
But it always gives me "ssh_exchange_identification: Connection closed by remote host" on host A
Thanks,