A simple SFTP CLI client for transferring files to and from a remote SFTP server.
- Python 3.x
paramiko
library
Install the required dependency:
pip install paramiko
python sftp_client.py host username password action local_path remote_path
host
: SFTP server hostname or IP addressusername
: Username for SFTP serverpassword
: Password for SFTP serveraction
:upload
ordownload
local_path
: Path to the local fileremote_path
: Path on the remote server
python sftp_client.py example.com user password upload /local/path/file.txt /remote/path/file.txt
python sftp_client.py example.com user password download /local/path/file.txt /remote/path/file.txt
This project is licensed under the MIT License.