Scp in linux is short for secure copy, and scp is a secure remote file copy command based on ssh login in linux. 1. scp command usage: scp Copies files between different hosts on the network. It uses the ssh security protocol to transmit data and has the same authentication mechanism as ssh, so as to securely copy files remotely. 2. basic scp command format: scp [-1246 BCpqrv] [-c cipher] [-F ssh_config] [-I identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user @] host1:] file1 [...] [[user @] host2:] file2 3. parameters of the scp command: -1 force scp command use protocol ssh1-2 force scp command use protocol ssh2-4 force scp command only use IPv4 addressing-6 force scp command only use IPv6 addressing-B use batch processing mode (No transmission password or phrase is asked during transmission) -C allows compression. (Pass the-C flag to ssh to enable the compression function)-p retains the modification time, access time, and access permission of the original file. -Q: The transmission progress bar is not displayed. -R Recursively copies the entire directory. -V details display output. Scp and ssh (1) will display the debugging information of the entire process. This information is used to debug connections, verify and configure problems. -C cipher encrypts data transmission with cipher. This option is passed directly to ssh. -F ssh_config specifies an alternative ssh configuration file, which is passed directly to ssh. -I identity_file: Read the key file used for transmission from the specified file. This parameter is directly transmitted to ssh. -L limit: limits the bandwidth that a user can use, in Kbit/s. -O ssh_option if you are used to using the parameter transfer method in ssh_config (5),-P port should be written in uppercase, port is the port number used for data transmission-S program specifies the program used for encrypted transmission. This program must be able to understand the options of ssh (1. 4. example (copy files in directories and directories) (1) local> remote server: scp-r local-1-1-4-1/* 10.2.71.11: /data/www.test.com/(2) Remote Server-> local: scp-r 10.2.71.11:/data/www.test.com/* local-1-1-4-2