amazon s3 - copying file from local machine to Ubuntu 12.04 returning permission denied -


how grant myself permission transfer .crt file local machine aws ubuntu 12.04 server?

i using following command machine , receiving permission denied response.

scp -i /users/me/key_pair.pem /users/me/ssl-bundle.crt ubuntu@ec2-50-150-63-20.eu-west-1.compute.amazonaws.com:/etc/ssl/certs/ 

i following comodo's instruction. refer heading configure nginx virtual host link. have not set regards permission user. little new me , appreciate further sources of information.

i changed permission of path on server , transferred file!

with reference file permissions , gave /etc/ssl/certs/ path "add other write & execute" permission chmod command when ssh'd ubuntu server:

sudo chmod o+wx /etc/ssl/certs/ 

then, on local machine, following command copied file on directory , transferred destination:

scp -i /users/me/key_pair.pem /users/me/ssl-bundle.crt ubuntu@ec2-50-150-63-20.eu-west-1.compute.amazonaws.com:/etc/ssl/certs/ 

it write permission need, , depending on use case, use appropriate chmod command.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -