Re: Have Script Deal with SSH/SCP password Prompt

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 08/16/05


Date: Tue, 16 Aug 2005 18:50:56 GMT

cevans81@gmail.com wrote:
> I would much rather prefer my script to write to an error log, then
> continue with its business.

> Any ideas on how I can get my script to deal with the password prompt?

-o BatchMode=yes (or put it in a config file used by that scp).

     BatchMode
             If set to ``yes'', passphrase/password querying will be disabled.
             This option is useful in scripts and other batch jobs where no
             user is present to supply the password. The argument must be
             ``yes'' or ``no''. The default is ``no''.

-- 
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. >


Relevant Pages

  • Re: Have Script Deal with SSH/SCP password Prompt
    ... >> I would much rather prefer my script to write to an error log, ... >> continue with its business. ... >> Any ideas on how I can get my script to deal with the password prompt? ... Stein Arne ...
    (comp.security.ssh)
  • Re: Support Groups
    ... A preposition is not a good word to end a sentence with! ... I understood he needed to go through a script. ... thought the main fan had failed and the script discovered it was the fan ... Go with the Small Business Group. ...
    (alt.sys.pc-clone.dell)
  • Re: Support Groups
    ... I understood he needed to go through a script. ... thought the main fan had failed and the script discovered it was the fan ... Go with the Small Business Group. ... the "Small Business" support group? ...
    (alt.sys.pc-clone.dell)
  • Re: Support Groups
    ... Those aren't periods, Irene. ... I understood he needed to go through a script. ... thought the main fan had failed and the script discovered it was the fan ... Go with the Small Business Group. ...
    (alt.sys.pc-clone.dell)
  • Re: Support Groups
    ... I missed this the first time I read your post. ... I understood he needed to go through a script. ... fan had failed and the script discovered it was the fan on the video card ... Go with the Small Business Group. ...
    (alt.sys.pc-clone.dell)