Comments (10)
Can you post the full error please?
from scp.py.
On my windows pc :
Traceback (most recent call last):
File "AutoDeploy.py", line 92, in <module>
scp.put(files=localPath,remote_path=remotePath,recursive=True)
File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 199, in put
self._send_recursive(files)
File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 367, in _send_recursive
self._chdir(last_dir, asbytes(root))
File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 355, in _chdir
self._send_pushd(to_dir)
File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 381, in _send_pushd
self._recv_confirm()
File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 404, in _recv_confirm
raise SCPException(asunicode(msg[1:]))
scp.SCPException: scp: /var/www/projet41_new: Permission denied
from scp.py.
I feel like I've tried everything...
I will try to do with os.system('scp') for now.
We'll see if it works.
from scp.py.
Looks like you don't have permission to go into that folder. I don't think there is a bug in scp.py.
from scp.py.
I do have write permissions on /var/www
Should the remote path point to an existing folder, or will the function create the folder I specify (project41_new) ?
from scp.py.
What is the exact mode of the folder?
from scp.py.
I tried chmod 777 on /var/www and it still doesn't work.
It's weird because with the scp command it works
from scp.py.
Does the mode on /
, /var
, or /var/www
not include the r
or x
bit?
from scp.py.
from scp.py.
SCP works with the instruction : os.system("scp -r " + localPath + " " + VMWEB1_PROD_USERNAME + "@" + VMWEB1_PROD_IP + ":" + remotePath)
from scp.py.
Related Issues (20)
- Support streams HOT 3
- exlude some files HOT 1
- remote delete Files after successfully download HOT 1
- Freebsd (Juniper Junos) not happy with extra space in Secure Copy get HOT 2
- Creating directories HOT 1
- Transfer directory HOT 4
- paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key) on all tests HOT 1
- Get data into file-like object - getfo HOT 1
- scp does not work with pathlib.PurePath HOT 1
- How do I download multiple files at the same time?
- Remote wildcard does not work HOT 2
- File not closed in case SocketTimeout occured
- Pass progress callback when calling get/put methods on SCPClient HOT 3
- Retrieve scp errors HOT 6
- add support when both source and target are from remote locations (not necessary the same server)
- Add support for get() to keep downloaded file in memory via a BytesIO object as the "local_file" HOT 1
- Request for enhancement support to download all regular file in case of there is non-regular file under one folder HOT 3
- Using a trailing forward slash in Windows causes problems
- New Release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scp.py.