DevOps
[EC2/SCP] MAC -> EC2 SCP를 이용하여 파일/폴더 업로드
코딩콩
2022. 4. 27. 19:47
- 파일 업로드
scp -i {pem key path} { local folder path } ec2-user@IP:{ remote path }
- 폴더 업로드
-r 옵션 추가
scp -i {pem key path} -r { local folder path } ec2-user@IP:{ remote path }
+ permission denied의 경우 ec2-user에게 remote path에 대한 권한 추가
chown ec2-user { remote path }