In linux, the scp command is generally used to transmit files through ssh. 1. download the file scp username @ servername:/path/filename such as scp root@192.168.0.101 from the server: /var/www/test.txt download the/var/www/test.txt file on 192.168.0.101 to the current directory 2. Upload the local file to the server scp/path/filename username @ servername: /path, for example, scp/var/www/test. php root@192.168.0.101:/var/www/put the local/var/www/directory test. upload the PHP file to the/var/www/directory on the server 192.168.0.101. 3. Download the entire scp-r username @ servername:/var/www/local_dir/from the server. For example: scp-r root@192.168.0.101:/va R/www/test/var/www/4. Upload the directory to the server scp-r local_dir username @ servername: remote_dir For example: scp-r test root@192.168.0.101: /var/www/upload the test directory under the current directory to the/var/www/directory on the server. Note: The write permission must be enabled for the target server. Scp packages must be installed on both servers.