Copy using WinSCP to EC2 getting Permission denied

0

I'm trying to copy files from windows 11 to EC2, I have used PPK and followed https://docs.aws.amazon.com/transfer/latest/userguide/transfer-file.html#winscp but I keep getting "Permission Denied"

anybody can help?

질문됨 2년 전239회 조회
1개 답변
0

It appears to be a Linux file permission issue. Make sure the user ( whose ppk is being used) is allowed to write to the destination directory. To test this, ssh to the instance as same user and try to create a test file.

Example command:

$ touch /path_to_destination_dir/testfile

Check the directory permissions using ls command and modify the permissions if requires.

$ ls -ld /path_to_destination_dir

If the write (w) permission is missing for the user, modify the directory permissions using chmod command.

profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠