How to download files to the local linux server
1. Use the scp command
Scp / home/work/source.txt work@192.168.0.10:/home/work/ # copy the local source.txt file to the / home/work directory on the 192.168.0.10 machine scp work@192.168.0.10:/home/work/source.txt / home/work/ # copy the source.txt file on the 192.168.0.10 machine to the local / home/work directory scp work@192.168 .0.10: / home/work/source.txt work@192.168.0.11:/home/work/ # copy the source.txt file on the 192.168.0.10 machine to the scp-r / home/work/sourcedir work@192.168.0.10:/home/work/ # copy folder under the / home/work directory on the 192.168.0.11 machine Add-r parameter
2. Use the xshell tool
It is very convenient to use xshell to operate the service, and it is also convenient to transfer files.
Is to use rz,sz, first of all, the server should install rz,sz
Yum install lrzsz
Of course, your local windows host also connects to the linux server through ssh.
Running rz will transfer the files of windows to the linux server
Run sz filename, and the file will be downloaded locally to windows
3. Common methods
Install Xshell and Xftp software locally, with shortcuts in xshell software (choose to use Xftp to open the current directory).
These are the details of how to download files from the linux server to the local. for more information, please follow other related articles!