SCP Permission denied (publickey). on EC2 only when using -r flag on directories

前端 未结 5 744
轻奢々
轻奢々 2021-01-30 10:41

scp -r /Applications/XAMPP/htdocs/keypairfile.pem uploads ec2-user@publicdns:/var/www/html

where uploads is a directory returns Permission denied (publicke

5条回答
  •  再見小時候
    2021-01-30 11:00

    Even if above solutions don't work, check permissions to destination file of aws ec2 instance. May be you can try with- sudo chmod 777 -R destinationFolder/*

提交回复
热议问题