PyCharm remote SFTP file transfer fails: Permission Denied

Hello,
This was working since I downloaded the program, but today I cannot upload files to a remote machine via SFTP even though the SSH and the SFTP connection test in deployment>connection results in a successful connection.

Whenever I try to upload the project files it gives me the following:

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)

I have tried rechecking the settings and the firewall on the remote machine. Also I have tried deleting and adding the Interpreter.


Please help.
Thanks,

1
2 comments

Please make sure the user has full read/write permissions to his home directory. SSH to the remote host and try creating the specified directory from the terminal.

0
Avatar
Permanently deleted user

@Atrouzmohamed I got the same issue. Based on my experience, you should check the following settings: (1) as Andrey Resler mentioned, you'd better use the command ll to check whether you have the right permissions on the folder, where you plan to upload to; (2) for the deployment setting, the root path setting should be double checked. I hope it helps to some extent, cheers!

0

Please sign in to leave a comment.