'ssh -1 -L < named_pipe' freezes
- Date: Tue, 9 Apr 2013 20:04:29 +0400
- From: Ilya Basin <basinilya@xxxxxxxxx>
- Subject: 'ssh -1 -L < named_pipe' freezes
Here's my script that works on linux:
cmd="ssh -T -N -g -1 -L 10001:anotherhost:22"
$cmd <"$fifo" &
# message: Pseudo-terminal will not be allocated because stdin is not a terminal.
# netstat shows that port 10001 is LISTENING
# from another terminal: ssh -p 10001 localhost
#printf '\0' >&3 # unfreeze on Cygwin
-N is ignored for protocol version 1, so as a workaround I redirect
input from an eternal pipe.
I want to save processes, so I'm using a named pipe instead of
sleep | ssh
On Cygwin when I try to use the forwarded port, the new client freezes
until I write something to the pipe.
This happens only with named pipes. Normal pipes work well.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple