Zssh's full name is Zmodem SSH. Look at the name to know, using the Zmodem, we used to SECURECRT, directly can be used to send files, more convenient than the use of SCP.
Zssh usage is: Log in the host with zssh like SSH command, press ctrl+2 (@ key) to enter ZSSH state in the command input state; $sz local file name [optional parameter-be: binary] Upload file complete (i output some garbled in time, but not affect upload)
download is the reverse, first in the remote host-side SZ file ctrl+2 and then enter the RZ
The ZMODEM protocol facilitates the main representation at the following points
First, you do not need to enter a very long command and password, directly using Rz,sz Plus file name, you can implement the file to send and receive. The speed is fast.
Second, in the relay of a host, to the target host and the local host, and so on, to transfer files, SCP is quite troublesome, you need to enter multiple command user password. But sz can penetrate directly.
Well, speaking of using, like next, and using SSH exactly like, just hitting the command when it turns into a zssh
#zssh [email protected]
Well, after entering, you need to upload the file . First
#[email protected]
Zssh >//here switches to the local machine.
ZSSH>PWD//Check the directory of the Local machine there
Zssh>ls//Look at the files.
Zssh>sz 123.txt//uploads the current directory of the local machine to the current directory of 123.txt to the remote machine
If you download the file
#sz filename//On the remote machine, start SZ and prepare to send the file
See a bunch of garbled characters
And then in
#[email protected]
Zssh > PWD//See in that directory, CD switch to the appropriate directory
Zssh > RZ//Catch the corresponding file
Between Linux machines Zssh, RZ, SZ transmit each other