Precedence: bulk
Background:
Client: RH6.2, openssh-2.1.1p4, egcs-2.91.66
Server: SCO OS 5.0.5, openssh-2.1.1p4, SCO Dev environment
RSA Authentication via ssh-agent
Any time I attempt to remotely run commands using the -n option from my
linux machine to a SCO OS I get this:
[spin at lazarus]$ ssh -n -l root somehost ls
Received disconnect: Command terminated on signal 13.
If I remove the -n option, the command completes normally.
If I place the above simple command inside a shell script like this one:
while read host; do
ssh -l root $host ls
done
it still doesn't work, giving the same error message as above.
According to signal(7), 13 is SIGPIPE which means a write to a pipe with
no readers. I assume that this problem has something to do with
redirecting stdin. Is it not being done properly in 2.1.1p4 under SCO?
I tried to duplicate this behaviour with a linux sshd but I couldn't.
I also tested X11 apps (using -n) and using ssh as a login mechanism.
Both worked fine. Has anyone else seen this?
Any suggestions?