admin管理员组文章数量:1332383
I am trying to copy a file from my windows machine to ec2 instance. I am using following command to do so.
scp -i "C:\Users\abc\AWSServer\MyEc.pem" "C:\Users\ABC\Mypython.py" ec2-user@_._.__.__:/home/ec2-user/PythonProgram
I am getting the permission denied error like follows:
scp: dest open "/home/ec2-user/PythonProgram/Mypython.py": Permission denied
scp: failed to upload file C:/Users/ABC/Mypython.py to /home/ec2-user/PythonProgram
does anybody knows the solution.
I am trying to copy a file from my windows machine to ec2 instance. I am using following command to do so.
scp -i "C:\Users\abc\AWSServer\MyEc.pem" "C:\Users\ABC\Mypython.py" ec2-user@_._.__.__:/home/ec2-user/PythonProgram
I am getting the permission denied error like follows:
scp: dest open "/home/ec2-user/PythonProgram/Mypython.py": Permission denied
scp: failed to upload file C:/Users/ABC/Mypython.py to /home/ec2-user/PythonProgram
does anybody knows the solution.
Share asked Nov 22, 2024 at 6:34 monamona 1095 silver badges18 bronze badges1 Answer
Reset to default 0Okay i got the answer. i changed the permission to the directory using chmod command
sudo chmod a+w /home/ec2-user/PythonProgram
本文标签:
版权声明:本文标题:amazon ec2 - permission denied error while trying to copy file from my desktop to a ec2 instance using scp command - Stack Overf 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742294063a2448364.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论