Pycharm remote SFTP file transfer fails: Permission Denied 및 Failed to change timestamp 해결하기

2020. 4. 30. 14:37꿀팁 분석 환경 설정

728x90

갑자기 로컬에서 작업한 것이 원격서버에 저장이 안되는 현상이 발생했다.

원격에서 가져오는 것은 가능했는데, 로컬에서 수정한 것을 보낼 때 

 

Failed to transfer file '/Users/.../PyCharm/server/server_plug/server_plug.py': could not create folder "sftp://192.168.0.64/home/.../Project/PyCharm/server_plug". (Permission denied)

 위와 같은 에러가 발생했다.

 

그래서 확인해보니 폴더 읽고 쓰기 권한이 없는 것이였다.

그래서 권한을 주니 해결 완료

chmod -R 777 ./folder

 

그 다음에 새로운 문제가 발생 원격지 서버의 timestamp 설정 문제로 에러가 발생하는 경우가 있는데 그럴 때는 preserve files timestamp 체크를 해제하면 해결할 수 있다고 함.

 

 

상단 Tool > Deployment > Options 으로 접속

 

갑자기 왜 이런 현상이 발생했는지는 모르겠지만 해결했으니 만족 

 

https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000556590-Deployment-via-SFTP-Permission-denied

 

Deployment via SFTP Permission denied

hey guys, i connected phpstorm with my ftp server via sftp, successfully. My root path is: "/var/www/virtual/test/htdocs/". But when i try to change anything and upload this on my server,...

intellij-support.jetbrains.com

https://gomcine.tistory.com/entry/phpStorm-%EC%9B%90%EA%B2%A9-%EC%84%9C%EB%B2%84-%EC%97%B0%EA%B2%B0-%EB%B0%8F-%EB%B0%B0%ED%8F%AC-Deployment

 

phpStorm 원격 서버 연결 및 배포 (Deployment)

phpStorm은 FTP/SFTP 를 통한 원격 서버 연결과 배포 기능을 포함하고 있습니다. 개인 프로젝트나 작은 규모의 프로젝트에서 활용하면 빠른 배포가 가능하며, 원격 서버에 있는 파일을 직접 수정할 수 있다는 장점..

gomcine.tistory.com

 

728x90