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.1.tar.gz
(5.2 kB
view details)
Built Distribution
scp-0.6.1.macosx-10.9-intel.exe
(66.8 kB
view details)
File details
Details for the file scp-0.6.1.tar.gz
.
File metadata
- Download URL: scp-0.6.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7cfc79792e0f191ccc885bd865c63f0ba40c2232bc2de62cd0bec71efdbd69 |
|
MD5 | 2f76d94d6db1121de54cf81831e3eee6 |
|
BLAKE2b-256 | 4b215fe4e8397783b5284df889c72e5d8ce31e6b545a3d2478c70599c4041edf |
File details
Details for the file scp-0.6.1.macosx-10.9-intel.exe
.
File metadata
- Download URL: scp-0.6.1.macosx-10.9-intel.exe
- Upload date:
- Size: 66.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecf7f7774cb79d23e45a64bb1eb9f897de129df71c2b978fce08a539a5008196 |
|
MD5 | bf4258aa819574dcc984c4d8f4d0d0dc |
|
BLAKE2b-256 | 34606a06d91d11daefc5542b35a95afff11ca4d1108af49b9dd672a2524bbca0 |