Skip to main content

A data exchange script based on ssh

Project description

trans client

Introduction

A tool based on scp for quickly transmitting data on a server. If you do not want to enter the account password during the transmission process, please configure the ssh key in advance. This is a client-side script. If you have set up your own LAN server as a backup server or data transfer station, you can install the trans-server script on the server side.

Install

pip install trans-client

Usage

help

tcl help

config

tcl config

user: remote user ip: remote host ip path: the base path that you want to use

login

tcl login

ssh user@ip

Trans

some examples:

  • if you config like this
    user: jack
    ip:   192.168.3.2
    path: /home/jack
    
  • get file/dir from remote server tcl --get /home/local/dir remote_dir or tcl -g /home/local/dir remote_dir

    scp -r jack@192.168.3.2:/home/jcak/remote_dir /home/local/dir

  • upload file/dir to remote server tcl --put /home/local/dir remote_dir or tcl -p /home/local/dir remote_dir

    scp -r /home/local/dir jack@192.168.3.2:/home/jcak/remote_dir

Contact me

zhewei@stu.xidian.edu.cn

License

Xpass is provided under the MIT LICENSE

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

trans-client-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

trans_client-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file trans-client-1.0.0.tar.gz.

File metadata

  • Download URL: trans-client-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trans-client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e9ea765c0d1752f010192c1de8d8f99d273ad8cea7ed7e5ebb3e10b24d12525
MD5 819ad76842220a1fe73293a5fe14ff60
BLAKE2b-256 99bf9afb622903c08a757b53d1a4c0f05698ef5d342805175297c5c9d7018333

See more details on using hashes here.

File details

Details for the file trans_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: trans_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trans_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eef1c2dc12cb05eb8a3ff859475e88dedde81884cb01f04df737564eea54056a
MD5 f14ad5bdc6bdc9e681174bf330b1ed8c
BLAKE2b-256 d61c946d8227e162de61e5f057da72e0431f436abcf2c695e5cba7d75bf2dbaf

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