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.6.2.tar.gz
(5.3 kB
view details)
Built Distribution
scp-0.6.2.macosx-10.9-x86_64.exe
(66.9 kB
view details)
File details
Details for the file scp-0.6.2.tar.gz
.
File metadata
- Download URL: scp-0.6.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5e71d80983d83669951403d9d392c0c17e32587bd27169393246bc270add00 |
|
MD5 | 1da65d2c9a414e6891882473cb07f3d9 |
|
BLAKE2b-256 | 2cc0c114d13ba608d62a63b7ddf40b7de46809eb1ee5e047e9535f5af868d7ab |
File details
Details for the file scp-0.6.2.macosx-10.9-x86_64.exe
.
File metadata
- Download URL: scp-0.6.2.macosx-10.9-x86_64.exe
- Upload date:
- Size: 66.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b154c824133ad91c2a0d99ecc025b8a14d4e8c1a88d9605e7c104df4ea56dde8 |
|
MD5 | 38cdb37f09eda0618869e509a510b69f |
|
BLAKE2b-256 | a5a19e193a70ad5a53265e01dd680dd2db5cce8ff20ff07ca16c01220563d195 |