|
|||||||||||
|
Automating scp within script without passphrase
From: Mak, Andrew <Andrew.Mak(at)team.telstra.com>
Date: Tue Jan 14 2003 - 20:49:17 EST
I am curious anyone has encounter the following and how to resolve / get round it. I am basically setting up a scp between hosts within a script. As a result, I did the following 1) generate an empty passphrase with the command 'ssh-keygen -t rsa -f /backup/backup-key -N "" ' 2) copy the public key to the authorized_keys file on the remote machine 3) on the local machine, specify the scp command with the key 'scp -i /backup/backup-key /tmp/fileA remoteHost:/tmp/fileA' Could anyone shed some light into this. Many thanks in advance
Regards
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:52 EDT |
||||||||||
|
|||||||||||