strange behaviour with ssh / stdin

Damien Miller djm at mindrot.org
Tue Oct 14 21:04:43 EST 2003


On Mon, 2003-10-13 at 19:56, Laurent Bartholdi wrote:
> hi,
> i noted the following strange behaviour using ssh and linux. this is
> probably a low-priority bug:
> 
> # ssh -V
> OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
> # uname -a
> Linux funnyfarm 2.4.21-20.1.2024.2.1.nptl #1 Fri Jul 11 06:04:52 EDT 2003 i686 i686 i386 GNU/Linux
> 
> # echo Hello | ssh frodo 'cat'
> Hello
> # echo Hello | ssh frodo 'cat /proc/self/fd/0'
> cat: /proc/self/fd/0: No such device or address
> # ssh frodo 'ls -l /proc/self/fd/0'
> lrwx------    1 root     root           64 Oct 13 18:51 /proc/self/fd/0 -> socket:[27105]

This is probably some weird Linux race condition. I can't imagine
anything that ssh could do that would cause this.

Does /dev/stdin or /dev/fd/0 work? These are often aliases for the same
purpose.

-d




More information about the openssh-unix-dev mailing list