Bug 1357

Summary: impossible to access standard input socket through ssh
Product: Networking Reporter: Laurent Bartholdi (laurent)
Component: OtherAssignee: Arnaldo Carvalho de Melo (acme)
Status: REJECTED INVALID    
Severity: low    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.4.21-20.1.2024.2.1.nptl Subsystem:
Regression: --- Bisected commit-id:

Description Laurent Bartholdi 2003-10-14 15:38:04 UTC
Distribution: Redhat 9.0.93
Hardware Environment: Sony GRX600 laptop
Software Environment:
Problem Description:

I use ssh to remotely execute a command, that requires standard input to appear
as a file. The standard way is to access /proc/self/fd/0. A typical use is:

$ find / | tar cf archive.tar -T /proc/self/fd/0

the problem can be fixed by inserting a 'cat |' before the command requiring
standard input as a file.

Steps to reproduce:

$ echo Hello | ssh localhost 'cat /proc/self/fd/0'
cat: /proc/self/fd/0: No such device or address
$ echo Hello | ssh localhost 'cat | cat /proc/self/fd/0'
Hello
$
Comment 1 Martin J. Bligh 2003-10-14 15:48:22 UTC
Not only is that 2.4, not 2.6, it also seems to be a distro kernel.
Moreover, there's no indication it's a kernel problem from your description.
Suggest you file this in some distro bugzilla somewhere.