> > Greetings,
> >
> > I'm in a situation where I need to copy files from one host to another
> > via a cron job. Automated FTP is out, due to the need for the
> > communication to be encrypted. Is it possible to automate scp or sftp
> > to do this? The only problem I can see so far is having to spec the
> > password somehow, and I'd rather not have a password or passphrase
> > stored in a file..
>
> What you can do is to start an ssh agent as such:
>
> ssh-agent > .ssh/ssh-agent-init
>
> Add this line to your .bashrc or equivalent:
>
> eval `cat $HOME/.ssh/ssh-agent-init`
Further testing reveals that this works as long as it's _only_ done on the
sending machine. If it's done on the receiving machcine, it breaks scp
transfers to that machine.
--
Åsmund Skjæveland ([EMAIL PROTECTED])
PGP signature