scp.py
scp.py copied to clipboard
scp module for paramiko
In function _recv_file(self, cmd) file where received data is stored is opened (file_hdl), but it is closed only in case whole data is transmitted properly. In case transmission is failed...
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'` ![image](https://user-images.githubusercontent.com/54487782/160298303-03ce9397-839e-486c-a98d-79f196f9e330.png) I checked to see if I had the writing rights and I...
There is a `put` method that takes paths and a `putfo` method that takes a file object instead. On the other hand there is only a `get` method and no...
Hi! Can someone add support for raw binary streams instead of reading/writting physical files? I have a starting point [here](https://github.com/jbardin/scp.py/blob/db5aad819766ee1786de4d8c5f13de60f71f2184/scp.py#L428): simply add availability of passing stream as *file* parameter alongside...
scp doesn't check the exit code of the remote scp operation. Unfortunately the scp command that comes with Windows 10 apparently doesn't provide any error messages at all on failure:...
The previous scp single-quote algorithm for pathnames worked well for POSIX servers but had problems on Windows servers, where single quotes are not recognized (just treated like normal characters). Use...
I was having a problem with scp hanging copying files to Windows (using the Windows-provided Windows 10 OpenSSH server on the remote). After a number of hours of debugging I...
The timeout has to be increased to handle pauses happening at start. The more the bandwidth is limited, the more the timeout should be.
I am copying files to a web server that uses a default mode of 600, however I wanted to keep the permissions from the local files or force 644. This...
I gave this code a try and here is a branch with quick and dirty fixes. channel.recv() method is (ab)used in the code and already receive data is not buffered...