The SCP of Linux

Source: Internet
Author: User
Tags file copy scp command secure copy

Linux SCP commands are used to copy files and directories between Linux . SCP is the abbreviation for secure copy, and SCP is a secure remote file Copy command under the Linux system based on SSH login.

Command format:
  SCP [Optional parameters] File_source File_target

Parameter description:
-1: Enforce SCP command using protocol SSH1
-2: Enforce SCP command using protocol SSH2
-4: Force SCP command to use only IPV4 addressing
-6: Force SCP command to use only IPV6 addressing
-B: Use batch mode (transfer password or phrase is not asked during transfer)
-C: Allow compression. (Pass the-c flag to SSH to turn on the compression function)
-P: Preserves the original file's modification time, access time, and access rights.
-Q: The transfer progress bar is not displayed.
-R: Recursively replicate the entire directory.
-V: Displays the output in verbose mode. SCP and SSH (1) will display debugging information for the entire process. This information is used to debug connections, authentication, and configuration issues.
-C cipher: To encrypt the data transfer with cipher, this option will be passed directly to SSH.
-F Ssh_config: Specifies an alternative SSH configuration file that is passed directly to SSH.
-I identity_file: The key file used to read the transfer from the specified file, which is passed directly to SSH.
-L Limit: limits the bandwidth that the user can use, in kbit/s.
-O Ssh_option: If you are accustomed to using the parameter passing method in Ssh_config (5),
-P Port: note is uppercase P, port is the port number specified for data transfer
-S Program: Specifies the programs that are used to encrypt the transfer. This program must be able to understand the options for SSH (1).

Sample references:
  Scp/usr/chendeming/local/1.mp3 [Email Protected]:/usr/docker/local/1.mk3

Additional references:

SCP hint Permission denied, please try again. Workaround

The SCP of Linux

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: 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.