[PLUG] scp in batch mode -- help

Felix Lee flee at aracnet.com
Wed Nov 13 01:43:24 UTC 2002


Bruce Kingsland <brucek at kingkon.com>:
> I want to scp a file to a remote server in a cron job. scp provides
> the -B switch to support that, but I haven't figgered out from the
> docs where I put the passphraze so that the command will work. The
> remote server doesn't support sftp, but does support ssh and scp (and
> ftp). Any ideas?

you can either generate an ssh key without a passphrase for
just this purpose, or you can tell ssh to use an ssh-agent
which you will have to type the passphrase to at some point.
--




More information about the PLUG mailing list