|
|||||||||||
|
Re: SCP help
From: Hamp Rutledge <hrutledge(at)guardnet.com>
Date: Thu May 29 2003 - 14:01:08 EDT
scp -i ~/.ssh/<rsa private key name> <file to copy> target system:/<path> A real world example is: /usr/local/bin/scp -i /export/home/oper/.ssh/oper_rg_rsa $FRONT rgweb.registerguard.com:/web1/httpd/htdocs The $FRONT is a shell variable that holds the filename of the file to copy. oper_rg_rsa is the private RSA key used to verify the users privilidges on the target system. This works and the private key is never exposed since it is just used in the user validation process. Of course the script runs under the same user every time.
Hope this helps
Hampel Rutledge
The Register-Guard
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:59 EDT |
||||||||||
|
|||||||||||