Re: SFTP in batch mode
From: zeb (thierry.constant1@free.fr)Date: 10/26/02
- Next message: Macarie Neculai: "Re: I cannot connect to a host, but I can connect to other hosts"
- Previous message: : "SSH API for C"
- In reply to: Yang xiao: "Re: SFTP in batch mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Macarie Neculai: "Re: I cannot connect to a host, but I can connect to other hosts"
- Previous message: : "SSH API for C"
- In reply to: Yang xiao: "Re: SFTP in batch mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|