I am using picloud which is a high performance cloud service run on top of amazon ec2. I am trying to copy files into a newly created "environment" in my account. I am however unable to use the scp command to copy files from my local machine into picloud env that I have created.
The usual way to SSH into the picloud env is as follows:
ssh -i picloud_rsa [email protected]
But when I try to replace ssh with scp using the following format:
scp -r ~/path_to_the_directory -i picloud_rsa [email protected]
I get the following error:
cp: -i: No such file or directory
cp: [email protected]/picloud_rsa: Permission
And If I try the following:
scp -r ~/Desktop/AllFolders/GMU/Fall\ 2013/yelp_phoenix_academic_dataset_duplicated/ picloud_rsa [email protected]
I get just the permission denied error:
cp: [email protected]/picloud_rsa: Permission denied
I have absolutely no idea how to use scp in this case and would really appreciate any help.
Thanks in advance!
man scp
, you will see it requires parameter-i identity_file
is ahead of the actual URIs of your file resources. – shawnzhu