cmd:zssh 

Usage 

Description 

zssh (Zmodem SSH) is a program for interactively transferring files to a remote machine while using the secure shell (ssh). It is intended to be a convenient alternative to scp , allowing to transfer files without having to open another session and re-authenticate oneself.

Source 

http://zssh.sourceforge.net/

In depth 

File transfer is achieved by using another tty/pty pair between the user and the local ssh process to plug either the user's tty (remote shell mode) or another process (file transfer mode) on the ssh connection.

ztelnet behaves similarly to zssh, except telnet is used instead of ssh. It is equivalent to 'zssh -s "telnet -8 -E"'

Files are transferred through the zmodem protocol, using the rz and sz commands.

zssh behaves as an usual ssh session until the escape sequence is depressed ( currently ^@ ), which enables file transfer mode. A new prompt is then displayed, and commands can be executed locally to initiate file transfers (among other things). It roughly behaves as a local shell featuring line edition, history and completion (thanks to libreadline), globbing, and escape characters ( " ' and \ ).

commands 

The following builtins are handled by zssh itself:

?  , cd , disconnect , escape , exit , help , hook , quit , repeat , rz ,
suspend , sz , version

Tips 

  • If file transfer is initiated but never completes, chances are the pty/tty on one of the systems are not 8-bit clean. (Linux is 8-bit clean, NetBSD is not). Using the -e (escape) option of rz should solve this problem.

Related Urls 

Comments 

  • doesn't work even if I zssh to my localhost. rz -e won't help.

    tong@xpt:~$ rz -e
    ... waiting to receive.**B0100000063f694
    zssh@xpt > cd tmp
    zssh@xpt > dir
    11getlog.lst  example_raw.lyx  tsun
    zssh@xpt > sz example_raw.lyx

— that's it, waited there indefinitely.