On 2002-08-12 01:50:50 -0800, Mark Weisman wrote:
> I built the script as you said, however, I'm getting an error that I
> can't get around in my error file;
>
> Could not create directory '/nonexistent/.ssh'.^M
> Aborted by user!^M
>
> Any ideas?
This is a ssh problem. ssh is not set up to use public key
authentication for this user which seems to be some non-priviledged
daemon account.
To use public key athentication the user needs a real homedir with a
~/.ssh dir containing the file authorized_keys. Then it'll work.
This is OT for this list, I'll send you a more elaborate personal reply
in a short while.
Have a nice day
Morten
> ==== script begin ====
> #!/usr/bin/perl -w
>
> use strict;
>
> my %machines = (
> firewall => 'admin',
> samba => 'operator',
> web => 'bofh',
> );
>
> foreach my $host (sort keys %machines) {
> print $host . ':' . `ssh -l $machines{$host} $host "uptime"`;
> }
> ==== script end ====
--
Morten Liebach <[EMAIL PROTECTED]>, http://m.mongers.org/
PGP-key: http://m.mongers.org/m_gpg.asc
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]