Transfer files to/from a minimal machine with SSH access.
Project description
simple_ssh_copy
Transfer files to/from a minimal machine with SSH access.
Install
pip install simple_ssh_copy
Usage
Python
import simple_ssh_copy
HOSTNAME = "..."
USERNAME = "..."
PASSWORD = "..."
# download file list
REMOTE_PATH = "..."
LOCAL_PATH = "..."
simple_ssh_copy.download(HOSTNAME, USERNAME, PASSWORD, [(REMOTE_PATH, LOCAL_PATH)])
# upload file list
REMOTE_PATH = "..."
LOCAL_PATH = "..."
simple_ssh_copy.upload(HOSTNAME, USERNAME, PASSWORD, [(LOCAL_PATH, REMOTE_PATH)])
# download dir
REMOTE_DIR = ".."
LOCAL_DIR = "..."
simple_ssh_copy.download_dir(HOSTNAME, USERNAME, PASSWORD, REMOTE_DIR, LOCAL_DIR)
Command Line
# Upload file via ssh-rsa
python3 -m simple_ssh_copy <local_file> <user>@<host_ip>:<remote_path>
# Download file via ssh-rsa
python3 -m simple_ssh_copy <user>@<host_ip>:<remote_path> <local_file>
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
simple_ssh_copy-0.1.4.tar.gz
(5.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_ssh_copy-0.1.4.tar.gz.
File metadata
- Download URL: simple_ssh_copy-0.1.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58fc15468a8c8be28c8b62b84698ea3a3eb708f1d088d284123a52347c6113e6
|
|
| MD5 |
eee6d282e01cfc8aabf110880053d8b0
|
|
| BLAKE2b-256 |
83424b52779de58fc39501673e897d045b3daa880a61c03d4c177c0809a6937c
|
File details
Details for the file simple_ssh_copy-0.1.4-py3-none-any.whl.
File metadata
- Download URL: simple_ssh_copy-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4fa2197c99c8a7148384f770a2da02fd1a348a3e81e49aea4459abd50bcd1d8
|
|
| MD5 |
06ae5d0e4d47abb220ef6e4ffc180cdb
|
|
| BLAKE2b-256 |
41ad2f2f7033a54ad2ac3f192154acf073aef38c6a97034d1bc4f15b9b6baf84
|