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 hashes)
Built Distribution
scp-0.6.0.macosx-10.9-x86_64.exe
(66.8 kB
view hashes)
Close
Hashes for scp-0.6.0.macosx-10.9-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | e234f569c78fea38aed30c96c5ca483215f202b8c81bd8bd3b0828ce03b9b510 |
|
MD5 | b02eeac83346d4599a31018e68ed3ecf |
|
BLAKE2b-256 | bd431f7ac46e5d31aa86f7038f5191f1d08bd3cc8888c1e50e3de197b3e3c046 |