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.0.tar.gz
(5.2 kB
view details)
Built Distribution
scp-0.6.0.macosx-10.9-x86_64.exe
(66.8 kB
view details)
File details
Details for the file scp-0.6.0.tar.gz
.
File metadata
- Download URL: scp-0.6.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea6bfd3a375fb42566086cbd12a8674f80d364a694e20ce3d8e31af2ab3b9173 |
|
MD5 | 3f8c9eecc67b12a02de5d654b45065db |
|
BLAKE2b-256 | f38dd60e37f7615c2151b652f13087caa01df24d57de3184320f8e4499574d06 |
File details
Details for the file scp-0.6.0.macosx-10.9-x86_64.exe
.
File metadata
- Download URL: scp-0.6.0.macosx-10.9-x86_64.exe
- Upload date:
- Size: 66.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e234f569c78fea38aed30c96c5ca483215f202b8c81bd8bd3b0828ce03b9b510 |
|
MD5 | b02eeac83346d4599a31018e68ed3ecf |
|
BLAKE2b-256 | bd431f7ac46e5d31aa86f7038f5191f1d08bd3cc8888c1e50e3de197b3e3c046 |