zmodem file transfer doesn't work over mosh
Author: geocarCreated Apr 3, 2022Updated Jul 3, 2026
Labelsfeature
sz/rz commands don't work through mosh and it would be nice if they could.
consider the following use-case:
$ screen # on local laptop,press ^a then enter :zmodem catch to enable zmodem receive on the laptop.
(screen)$ mosh host1
host1$ ssh host2
host2$ sz file.ci think support could be easier than other byte-oriented protocols, because:
- zmodem frames are very easy to recognise (in the terminal parser and keyboard input)
- zmodem frames are small (1k in traditional; 8k in lszrz a popular zmodem implementation), so they fit inside (fragmented) a udp packet and if packets are lost, zmodem can shrink the window
- zmodem retries automatically, so packet delivery isn't required
Source: mobile-shell/mosh