Date: Tue, 12 Jan 1999 01:18:41 GMT
> Some earlier posts indicated that it was possible to > use zmodem to transfer files under an ssh connection. > I have played around with this for a while and I > can't figure out the key sequences to start the > receive operation.
The secret of 'rz':
destination computer -- Unix box source computer -- Win95 machine running TeraTermPro with ttsh
dba1% rz rz ready. Type "sz file ..." to your modem program ...rz 3.48 01-27-98 finished.
The above is from a actual rz session. I typed 'rz' in the unix shell to start it listening for zmodem sequences. Then on the win95 end, I had ttermPro send over a file with the zmodem protocol. The file transferred fine. In going between two unix machines, on the source computer you would type "sz file …" as the 'rz' prompt indicates. Part of the secret is starting 'rz' on the receiver before trying to do the 'sz' end.
Rich
>Part of the secret >is starting 'rz' on the receiver before trying to do the 'sz' end.
Actually, this shouldn't be the case. With a properly working sz program, the first thing sz does is to send "rz" to the remote. That should start the receiver automatically. Thus, if things are properly configured, there's no need to start the rz program manually as suggested above.
Perhaps you don't have a rz receiver, or maybe it's not in your path. Try starting it manually with by typing "rz". If that dosen't work, try /usr/local/bin/rz or some such. If you can't start it manually with "rz", it ain't gonna start automatically.
Another common problem is tty cooking that gets in the way of sz. Fight that problem with "sz -e" to escape control characters. When doing sz over telnet, this is often necessary. I wouldn't be suprised if ssh works the same way.
Chris Nadovich
I just checked it out (transferring without doing an explicit rz on the receiver), and it works as you say it should. Thanks for the info.
Rich
>the sending with sz, but I can't get control to >start the rz. What is the secret?
It would be nice if ssh had a ~| command that would tie stdin/stdout of the command to the ssh stream.
What I do is I grabbed ztelnet from the net somewhere (probably out of the linux archive on sunsite; any search should probably turn it up). I then "ztelnet localhost" (private machine at home). From that telnet session, I ssh to where I want to go, fire up sz on that end, hit c-] on local end, type rz, and away I go.
Of course I'm assuming here that you are looking for a unix-to-unix solution. You didn't specify otherwise, and that's where my experience is.
mrc