Skip to content

NetworkRehab/transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Transfer

A simple SFTP CLI client for transferring files to and from a remote SFTP server.

Requirements

  • Python 3.x
  • paramiko library

Installation

Install the required dependency:

pip install paramiko

Usage

python sftp_client.py host username password action local_path remote_path
  • host: SFTP server hostname or IP address
  • username: Username for SFTP server
  • password: Password for SFTP server
  • action: upload or download
  • local_path: Path to the local file
  • remote_path: Path on the remote server

Examples

Upload a File

python sftp_client.py example.com user password upload /local/path/file.txt /remote/path/file.txt

Download a File

python sftp_client.py example.com user password download /local/path/file.txt /remote/path/file.txt

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published

Languages