[Planetlab-users] how to transmit file in a batch manner

Tux9 tuxding at gmail.com
Tue Jan 17 09:36:38 EST 2012


I know your problem.

You should generate a private key WITHOUT password.

2012/1/17 ´ÞСÁú <sunshine870 at gmail.com>

> yes, password. After you use the command "scp", you must input the
> password the generate the private key file. Now I find that "expect" can be
> used to solve my problem. Thank you all the same!
>
>
>
> 2012/1/17 Tux9 <tuxding at gmail.com>
>
>> 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,
>>> Xiaolong
>>>
>>>
>>> 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)
>>>>
>>>> HOSTFILE='hosts'
>>>>
>>>> if [ -f $HOSTFILE ]
>>>> then
>>>>    printf "Host file found, preparing to transfer\n"
>>>>    while read server
>>>>    do
>>>>     scp -i ~/.ssh/id_rsa -r fileToUpload (or folder) sliceName@
>>>> $server:DestinationFolder
>>>>    done < $HOSTFILE
>>>> else
>>>>    printf "File \"$SOURCEFILE\" not found\n"
>>>>    exit 0
>>>> fi
>>>> exit 0
>>>>
>>>
>>> _______________________________________________
>>> Users mailing list: Users at lists.planet-lab.org
>>> https://lists.planet-lab.org/mailman/listinfo/users
>>>
>>
>>
>> _______________________________________________
>> Users mailing list: Users at lists.planet-lab.org
>> https://lists.planet-lab.org/mailman/listinfo/users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.planet-lab.org/pipermail/users/attachments/20120117/08dcc6b1/attachment.html


More information about the Users mailing list