scp in a script with keys and passphrase

Andrew Bacchi bacchi at rpi.edu
Mon Aug 4 16:01:25 UTC 2008


Put your public key in ~/.ssh/authorized_keys on the receiving end. 
That way no passwords are needed.

Nicholas G. Stamatakos wrote:
> Hello--
> Looking for help or documentation which will tell me how to use a
> passphrase in a script to scp from one computer to another.
> 
> I know how to set up the keys and implement a passphrase requirement.
> However, I don't know how to put the passphrase properly into a script.
> 
> The script is supposed to copy from my account on one computer to
> another and be executed in a crontab.  However, we are required to use a
> passphrase with the keys.  I don't see any documentation tell me how to
> use incorporate the passphrase in the scp command.
> 
> Can anyone on this blog/help discussion list help me with that or point
> me in the right direction to some documenation.
> Thanks
> Nick

-- 
veritatas simplex oratio est
         -Seneca

Andrew Bacchi
Systems Programmer
Rensselaer Polytechnic Institute
phone: 518.276.6415  fax: 518.276.2809

http://www.rpi.edu/~bacchi/




More information about the redhat-list mailing list