2008/11/26 Max <[EMAIL PROTECTED]>:
> I'm configuring pssh to address multiple servers at once.  I set up
> key-based auth for ssh, it works very nicely.  pssh works from the

Is that key protected by a pass-phrase?

If so then you should somehow overcome the requirement to provide a
pass phrase - either by creating another key-pair which isn't
protected by a pass phrase or by keeping the pass phrase in an
ssh-agent.

I'd recommend first checking the option to create a key which isn't
protected by a pass-phrase but its use on the remote servers will
dictate execution of only a specific command. Look for "command=" (and
maybe also "from=") in "man sshd". Write a special script to be
installed on the remote server and which will allow you to limit
access using this key to execute only that script.

> command-line, sends the same command to all servers at once.
> The next step is to script some actions to run from cron, and the script
> fails with no message, and locks up: I can't break out, have to kill the
> process.
> I've used full paths in the script - any ideas?

Also use "-vvv" flags to ssh (and scp and other ssh-based commands) to
make it very verbose.

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to