lrzsz is a good tool to transfer files between Windows and linux. I know it works in xshell but when I use MobaXterm or putty to log in a remote host, I meet some problems. I can install lrzsz sucessfuly in linux but when I use 'lrz',it gets stuck and something like ▒CCCCCCCCCC023be50eive.**B0100000023be50 shows. I don't know why and how to fix it.

  • lrzsz uses the xmodem/ymodem/zmodem protocol. If you use putty anyway, why don't use pscp (the putty scp implementation)? – dirkt Oct 30 '19 at 14:01

Well, you can get a putty suite program pscp to do scp, and mobaxterm has scp (technically sftp) built into it that even opens in the left column of a terminal session so you can transfer files via GUI clicks.

Zmodem dates back to the era of dial in modems, and the terminal program was expected to recognize the starting sequence and launch the reception side of the transfer. That's not built into putty or mobaxterm.

There are ssh clients that do support zmodem. Wikipedia lists AbsoluteTelnet, SecureCRT, Tera Term and ZOC (I have never used any of these myself)

If you really were stuck behind something that blocks scp, and wanted to transfer short files, you could use uuencode or base64 (or even xxd) to change a binary file into a printable ASCII block, and capture that in your terminal's scroll back buffer. You'd have to have to find a windows utility to convert back.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.