Re: SFTP in batch mode

From: zeb (thierry.constant1@free.fr)
Date: 10/26/02


From: "zeb" <thierry.constant1@free.fr>
Date: Sat, 26 Oct 2002 10:11:28 +0200

OK. thank you very much ...

"Yang xiao" <yang2002_99@yahoo.com> a écrit dans le message de news:
55c6e631.0210241044.2f545ff1@posting.google.com...
> "zeb" <thierry.constant1@free.fr> wrote in message
news:<3db5ab5e$0$232$626a54ce@news.free.fr>...
> > Hi,
> >
> > I want to transfert , with SFTP or SCP ( SUN -> HP-UX) some files with
a
> > script
> > every night.
> >
> > with nothing:
> > I am prompted for a password
> >
> > with key-gen, I genrerated a ~/.ssh/identity.pub , which I copy to the
> > remote host in ~/.ssh/autorized_keys
> > I am promted for the pass phrase
> >
> > what I have to do to have a real batch mode ??
> >
> > Thanks in advance
>
>
> 1. ssh-keygen a key without a pass phrase.
> or
> 2. use ssh-agent (man ssh-agent, ssh-add)
>
> bassically,you need to generate a ssh-agent to hold the keys and pass
> the environment variables to the batch jobs.
>
> $ ssh-agent > ~/env-info #take a look in this file you
> will understand, and for c shells, etc. use ssh-agent -c
> $ ssh-add BatchKey
>
> input key phrase. Now, in the batch script:
>
> #!/bin/ksh
> source ~/env-info
> scp ..
> ssh ..
>
> Hope this helps.
>
> Yang



Relevant Pages

  • Re: SFTP in batch mode
    ... ssh-keygen a key without a pass phrase. ... use ssh-agent ... the environment variables to the batch jobs. ... Now, in the batch script: ...
    (comp.security.ssh)
  • Re: Automated script to backup IE favorites?
    ... Diego - disregard last message I got it! ... If you don't want to use a batch file, ... you have to create a GPO to run the batch or WSH script on user logoff ... MS MVP Windows - Internet Explorer ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Multiple File Conversions via Batch File
    ... I am attempting to convert multiple .wav files to the .flac format via a batch script. ... when I highlighted multiple .wav files in Explorer and click my "Encode" option multiple instances of the batch file are run. ...
    (microsoft.public.windowsxp.general)
  • Re: Returning a value from a VBScript
    ... VBScript for use by another script, batch file, or other command. ... echo MyScript.vbs returned an ErrorLevel of %ErrorLevel% ...
    (microsoft.public.scripting.vbscript)
  • Re: Is It Scripting or Not
    ... I'm considering VB Script. ... Many tasks that can be done using batch scripts or directly from the command ... reasonably be carried out with a series of batch commands. ... run backup batch file for computer backups ...
    (microsoft.public.scripting.vbscript)