On 5/17/05, Sonia Hamilton <[EMAIL PROTECTED]> wrote:
> I've running this script, which deploys a directory to student machines:
>
> > ... initialisation omitted
> >
> > while IFS=: read myname mynumber ; do
> > destip="10.0.0.${mynumber}"
> > scp -r $chapter ${destip}:/home/student
> > #ssh $destip "chown -R student. /home/student"
> > done < ips.txt
>
> The scp works fine; copies all the stuff thru to all machines (I'm using
> an ssh key for root). But when I uncomment the ssh line, only the first
> machine is done, suggesting that ssh is dying somehow.
>
> Any ideas on what I could try?
Try "ssh -vvv ..." to get more information from SSH about what's happening
try running the script with "sh -x" to see if this gives any useful info
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html