[Planetlab-users] how to transmit file in a batch manner
cplout01 at cs.ucy.ac.cy
Tue Jan 17 07:43:43 EST 2012
exactly, you should use a private key for authenitcation,
see also http://www.linuxjournal.com/article/8600
On Tue, Jan 17, 2012 at 1:42 PM, Tux9 <tuxding at gmail.com> wrote:
> password? not private key file?
> scp -i id_planetlab ./filename yourname at planetlab-01.cs.princeton.edu:./
> or add the id_planetlab to a configure file (actually I forgot the file's
> name, but you can google it)
> On Tue, Jan 17, 2012 at 12:18, 崔小龙 <sunshine870 at gmail.com> wrote:
>> Hi, Dear Christos!
>> Thank you very much! I have solved the problem with your help.
>> However, the command "scp" requires to input password every time. Is
>> there any way that I can put my password into the script so that there is
>> no need for me to input every time?
>> Looking forward to your reply!
>> Best wishes,
>> 2012/1/15 Christos Ploutarchou <cplout01 at cs.ucy.ac.cy>
>>> you can use a script of the form (having the nodes to upload into
>>> a separate file (ex. hosts)
>>> if [ -f $HOSTFILE ]
>>> printf "Host file found, preparing to transfer\n"
>>> while read server
>>> scp -i ~/.ssh/id_rsa -r fileToUpload (or folder) sliceName@
>>> done < $HOSTFILE
>>> printf "File \"$SOURCEFILE\" not found\n"
>>> exit 0
>>> exit 0
>> Users mailing list: Users at lists.planet-lab.org
> Users mailing list: Users at lists.planet-lab.org
University of Cyprus
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users