On SecureCRT, use the command line to upload or download files from the remote server.
Introduction: Generally, access is performed through the command line on the server. In addition to filezilla and other tools, you can use rz/sz to perform similar operations to upload or download files.
1. SecureCRT
SecureCRT is a terminal simulation program that supports SSH (SSH1 and SSH2). It is simply the software used to log on to UNIX or Linux server hosts in Windows.
Generally, O & M personnel or developers use these tools to remotely log on to the server and complete relevant operations.
2. File upload or download requirements
If the server develops port 21 and supports the ftp protocol, you can use tools such as filezilla for ftp access. However, in many cases, the server may have disabled the use of ftp to share file content. So how can we upload or download files on top of the command line?
Let's take a look at the rz/sz command. They can directly perform file operations on the server.
3. Install rz/sz
yum install lrzsz -y
Installation View:
Check whether the installation of rz/sz is successful:
From the above response, we can see that the installation is successful.
4. Set the SecureCRT upload/download directory
Set session options --> X/Y/Z Modem --> upload directory/download directory
5. Use commands
Sz command Demonstration:
Download the sz filename file.
Download multiple files sz filename1 filename2 download all files under the dir directory, excluding the folder sz dir/* under the dir /*
Rz command Demonstration:
Enter rz and press Enter. The file selection dialog box appears. Select the file to be uploaded. Multiple files can be specified at a time. The path uploaded to the server is the directory where the rz command is currently executed.
Then, you can easily use these commands to complete file upload/download operations.