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 trzszPlease download the latest release from GitHub.
git clone https://github.com/trzsz/trzsz-go.git
cd trzsz-go
make
sudo make installAdd 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.xSimilar 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
tmuxon the local computer, runtmux( withouttrzsz) first, thentrzsz sshto login.
trzsz looks for configuration at ~/.trzsz.conf. e.g.:
DefaultUploadPath =
DefaultDownloadPath = /Users/username/Downloads/
-
If the
DefaultUploadPathis not empty, the path will be opened by default while choosing upload files. -
If the
DefaultDownloadPathis 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 winptyinMSYS2. Git Bashshould have winpty installed, no need to install it manually.- Add
winptybeforetrzsz, e.g.:winpty trzsz ssh x.x.x.x.
- Install winpty by
-
/usr/bin/sshin 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 [email protected].

