trzsz ( trz / tsz ) is a simple file transfer tools, similar to lrzsz ( rz / sz ), and compatible with tmux.
Not released yet, please download the latest release from GitHub.
sudo add-apt-repository ppa:trzsz/ppa
sudo apt update
sudo apt install trzsz
Please download the latest release from GitHub.
git clone https://github.com/trzsz/trzsz-go.git
cd trzsz-go
make
sudo make install
Add trzsz
before the shell, e.g.:
trzsz tmux
trzsz /bin/bash
trzsz ssh x.x.x.x
trzsz.exe cmd
trzsz.exe ssh x.x.x.x
Similar to lrzsz ( rz / sz ), command trz
to upload files, command tsz /path/to/file
to download files.
For more information, see the website of trzsz: https://trzsz.github.io.
-
It is recommended to set alias
alias ssh="trzsz ssh"
for convenience. -
If using
tmux
on the local computer, runtmux
( withouttrzsz
) first, thentrzsz ssh
to login.
trzsz
looks for configuration at ~/.trzsz.conf
. e.g.:
DefaultUploadPath =
DefaultDownloadPath = /Users/username/Downloads/
-
If the
DefaultUploadPath
is not empty, the path will be opened by default while choosing upload files. -
If the
DefaultDownloadPath
is not empty, downloading files will be saved to the path automatically instead of asking each time.
-
If using MSYS2 or Git Bash on windows, and getting an error
The handle is invalid
.- Install winpty by
pacman -S winpty
inMSYS2
. Git Bash
should have winpty installed, no need to install it manually.- Add
winpty
beforetrzsz
, e.g.:winpty trzsz ssh x.x.x.x
.
- Install winpty by
-
/usr/bin/ssh
in MSYS2 and Cygwin is not supported yet, use the OpenSSH instead.- in
MSYS2
, e.g.:winpty trzsz /c/Windows/System32/OpenSSH/ssh.exe x.x.x.x
. - in
Cygwin
, e.g.:trzsz "C:\Windows\System32\OpenSSH\ssh.exe" x.x.x.x
.
- in
Feel free to email me lonnywong@qq.com.