Use of scp in linux

Source: Internet
Author: User
Tags scp command secure copy
Scp in linux is short for securecopy, 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 as ssh... 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.