Files can go through the terminal session itself with ZMODEM, the protocol of sz and rz (lrzsz), when there is no SFTP: serial consoles, network devices, a server reached through several hops. It works in local, SSH, Telnet and serial terminals.
- Receive (the remote sends): run
sz file…on the other end. PlexusTerm asks for a folder, opening in your Downloads folder, and saves the files there. A bar at the bottom left of the pane shows the file, how much of it arrived and a Cancel button; when it ends it says how many files arrived and where (hover it for their paths). - Send (the remote receives): run
rzon the other end. PlexusTerm asks for one or more files and sends them in order, with the same bar. - Closing the folder or file picker, or Cancel during the transfer, tells the other end to stop (the CAN sequence lrzsz uses);
sz/rzstop and the shell is back. What the other end still had on its way is dropped, and the shell's output (its prompt) shows as soon as it comes. A file that was being received when the transfer stopped (cancelled, an error, the other end cancelling with Ctrl+C, or the session closing) is deleted; files that arrived complete before it stay. - Names: a received file keeps only its own name (any folders in it are dropped, characters files cannot have are replaced by
_), Windows device names such asCON,NUL,COM1orCONOUT$get a_in front, and an existing file is never replaced: the new one is saved asname (1).ext,name (2).extand so on. - While a transfer runs its bytes do not reach the terminal; once it ends, the output shows again. Output is never delayed until a transfer really starts (the start of its header, with its control byte, has arrived); a header cut short is shown after half a second; and if no transfer starts within 10 seconds of choosing the folder or files (an
szorrzthat already gave up), the transfer is dropped and what arrived meanwhile is shown. - Limits: files up to 4 GB each; a file never grows past the size its sender announced, and one sent without a size stops at 1 GB (the transfer ends with an error and the unfinished file is deleted); folders are not sent (pick the files inside them); Mosh sessions cannot carry transfers (Mosh redraws the screen instead of passing bytes). Over Telnet, bytes are escaped as Telnet requires; a server that changes them anyway breaks the transfer. If the other end stops answering for 40 seconds, the transfer is given up.
- Settings → Terminal → ZMODEM transfers (rz/sz) (on by default): turn it off to show what
szandrzprint as plain text, as before.