scp module for paramiko
Project description
# Pure python scp module
========================
The scp.py module uses a paramiko transport to send and recieve files via the
scp1 protocol. This is the protocol as referenced from the openssh scp program,
and has only been tested with this implementation.
## Example
==========
```python
from paramiko import SSHClient
from scp import SCPClient
ssh = SSHClient()
ssh.load_system_host_keys()
ssh.connect('example.com')
# SCPCLient takes a paramiko transport as its only argument
scp = SCPClient(ssh.get_transport())
scp.put('test.txt', 'test2.txt')
scp.get('test2.txt')
```
$ md5sum test.xt test2.txt
fc264c65fb17b7db5237cf7ce1780769 test.txt
fc264c65fb17b7db5237cf7ce1780769 test2.txt
========================
The scp.py module uses a paramiko transport to send and recieve files via the
scp1 protocol. This is the protocol as referenced from the openssh scp program,
and has only been tested with this implementation.
## Example
==========
```python
from paramiko import SSHClient
from scp import SCPClient
ssh = SSHClient()
ssh.load_system_host_keys()
ssh.connect('example.com')
# SCPCLient takes a paramiko transport as its only argument
scp = SCPClient(ssh.get_transport())
scp.put('test.txt', 'test2.txt')
scp.get('test2.txt')
```
$ md5sum test.xt test2.txt
fc264c65fb17b7db5237cf7ce1780769 test.txt
fc264c65fb17b7db5237cf7ce1780769 test2.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scp-0.7.1.tar.gz
(5.4 kB
view details)
Built Distribution
scp-0.7.1.macosx-10.9-intel.exe
(67.0 kB
view details)
File details
Details for the file scp-0.7.1.tar.gz
.
File metadata
- Download URL: scp-0.7.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c42e1cc828dd207d745b06f961839d816a7f07eb5823320ce0ac50b91ce7d9 |
|
MD5 | 772592402400b7c2cbcdff7b23c30986 |
|
BLAKE2b-256 | 1226456f90232eda9775c4616703beb8f01d78adeccb0ad80c33b4a4f63d6a18 |
File details
Details for the file scp-0.7.1.macosx-10.9-intel.exe
.
File metadata
- Download URL: scp-0.7.1.macosx-10.9-intel.exe
- Upload date:
- Size: 67.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1d2d7c9c43bdf5b48d799a489c33b4e1d65a420863ff8986312f8e9be1758f5 |
|
MD5 | 4e8ba0993e1f3a63878e580432e167de |
|
BLAKE2b-256 | 2df04313bca244f5ecffb35976a7f2a612b24af3fc1a20019f3483db11f1ee2a |