I'm having trouble using ssh to execute a remote command inside a /bin/sh script. It executes just fine once, but it stops the loop execution there:

Code:
cat /home/guest/systems | \
while read line
do 
ssh -l root $line "ls -alF /etc"
done
Other commands between the do and done work and won't kill the loop, but for some reason as soon as I add the ssh the loop dies. The ssh command isn't failing, so I don't think it's the return code for ssh that's killing the loop, but I don't know why it's dying. Anyone have any ideas on why this is happening and how to avoid it?