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.5.1.tar.gz
(4.8 kB
view details)
Built Distribution
scp-0.5.1.macosx-10.8-intel.exe
(66.4 kB
view details)
File details
Details for the file scp-0.5.1.tar.gz
.
File metadata
- Download URL: scp-0.5.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52c4ba4d473210d085bd947af0f88278e182af527bb2f2fa3298bc30da6567f |
|
MD5 | 4c4c3659a3882ad05083b55397fa60e9 |
|
BLAKE2b-256 | 1d97dde3b1373bbbafaad388579c2742fac818237fcb583db56f52b091a2c9e6 |
File details
Details for the file scp-0.5.1.macosx-10.8-intel.exe
.
File metadata
- Download URL: scp-0.5.1.macosx-10.8-intel.exe
- Upload date:
- Size: 66.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b95fa9548be8efbdeb7e6f7e729cf4a929c3de1755ffdadeef090d5ace2c0ec |
|
MD5 | f582a5fb4b7dcb8cc3346b36c5a7c5cb |
|
BLAKE2b-256 | 5529f9d9cba4f0a0d2ab922f0eae303056935661e949718906fcfb1be44a79c7 |