Re: scp

From: Remco (
Date: 05/16/02

From: Remco <>
Date: 16 May 2002 12:00:57 +0200

"squindon" <> writes:
> I need to use scp in a script to be added in crontab but i'm dealing
> with some problems because i'm still unable to make non-interactive
> connection.
Non interactive connections are easy as soon as you understand the use
of ssh-agent.
1) use ssh-keygen to generate identity
2) move public part of identity to remote system
3) run ssh-agent
4) use ssh-add to add identity to agent
5) make sure you set the env var SSH_AUTH_SOCK to the correct value in
   your crontab eg like: env SSH_AUTH_SOCK=<value> scp from to
Don't use passphrase less identities.

Or setup SSH to use .shosts