Linux SCP usage notes

Source: Internet
Author: User
I. Role:
  • Remote copy file/directory SCP
Ii. Basic command format:
  • Scp source dest
3. Specific Application Example:
    1. Local> remote (copy file ):

      • scp LocalFile  UserName@RemoteIP:RemoteFile
    2. Local> remote (copy directory ):

      • scp -r LocalFolder UserName@RemoteIP:RemoteFolder
    3. Remote> Local (copy a file ):

      • scp UserName@RemoteIP:RemoteFile LocalFile 
    4. Remote> Local (copy directory ):

      • Scp-r UserName @ RemoteIP: RemoteFolder LocalFolder

    5. Remote> remote (copy a file from 1 to 2 ):

      • Scp UserName1 @ RemoteIP1: RemoteFile1 UserName2 @ RemoteIP2: RemoteFile2

    6. Remote> remote (copy directory, from 1 to 2 ):
      • Scp-r UserName1 @ RemoteIP1: RemoteFolder1 UserName2 @ RemoteIP2: RemoteFolder2

      • Note: After executing the preceding command, the system prompts you to enter the UserName Password.

      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.