Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_ssh_copy-0.1.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for simple_ssh_copy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 58fc15468a8c8be28c8b62b84698ea3a3eb708f1d088d284123a52347c6113e6
MD5 eee6d282e01cfc8aabf110880053d8b0
BLAKE2b-256 83424b52779de58fc39501673e897d045b3daa880a61c03d4c177c0809a6937c

See more details on using hashes here.

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

Hashes for simple_ssh_copy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e4fa2197c99c8a7148384f770a2da02fd1a348a3e81e49aea4459abd50bcd1d8
MD5 06ae5d0e4d47abb220ef6e4ffc180cdb
BLAKE2b-256 41ad2f2f7033a54ad2ac3f192154acf073aef38c6a97034d1bc4f15b9b6baf84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page