Bug 1357 - impossible to access standard input socket through ssh
Summary: impossible to access standard input socket through ssh
Status: REJECTED INVALID
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 low
Assignee: Arnaldo Carvalho de Melo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-14 15:38 UTC by Laurent Bartholdi
Modified: 2003-10-14 15:48 UTC (History)
0 users

See Also:
Kernel Version: 2.4.21-20.1.2024.2.1.nptl
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.