Re: use openssh in script for timeout
From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 03/15/04
- Next message: all mail refused: "Re: john the ripper for private keys?"
- Previous message: Bernd Schubert: "john the ripper for private keys?"
- In reply to: hmc: "use openssh in script for timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 15 Mar 2004 17:33:39 GMT
hmc <nospam@nospam.com> wrote:
> Hi,
> I have a bash script that use openssh to go to a list of machines to
> run a program.
> I want the script to try the next host if the current host does not
> response in a certain period or prompt for password.
> Is there a option to do this?
You may want to set ConnectionAttempts and ConnectTimeout. I usually
set ConnectTimeout to 5 seconds for scripts when I'm working with known
machines in a LAN.
Of course 'BatchMode=yes' is usually beneficial. Set up keys and run an
agent rather than typing in passwords.
And finally you can set all this stuff in a config file. I usally keep
one just for a script and call that config explicitly..
ssh -F script.config -l $user $host $command
-- Darren Dunham ddunham@taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. >
- Next message: all mail refused: "Re: john the ripper for private keys?"
- Previous message: Bernd Schubert: "john the ripper for private keys?"
- In reply to: hmc: "use openssh in script for timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|