-
Notifications
You must be signed in to change notification settings - Fork 138
Permission denied with .put() #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you post the full error please? |
On my windows pc :
|
I feel like I've tried everything... |
Looks like you don't have permission to go into that folder. I don't think there is a bug in scp.py. |
I do have write permissions on |
What is the exact mode of the folder? |
I tried chmod 777 on /var/www and it still doesn't work. |
Does the mode on |
SCP works with the instruction : |
I'm getting an exception with the function .put()
scp.put(files=localPath,remote_path=remotePath,recursive=True)
localPath
='C:\\Users\\taill\\AppData\\Local\\Temp\\tmpycfisven\\Version1.1\\builtapp'
remotePath
='/var/www/projet41_new'
I checked to see if I had the writing rights and I do. I can transfer files with WinSCP but with the put() function it doesn't work.
I also tried to do a file transfer from a linux machine to my target machine (linux), with the scp command. And it works.
I tried to run the script from a linux machine and I get the same error.
As you can see I'm trying to scp from a temporary folder, I tried with a normal folder and it doesn't work
I checked and the temporary folder does exist.
Does anyone have a solution to the problem?
This is the part of my script where I'm using scp :
The text was updated successfully, but these errors were encountered: