Use of SCP commands

Source: Internet
Author: User
Tags scp command secure copy

What is the SCP command?

SCP is short for secure copy. SCP is a secure remote file copy command based on SSH login in Linux.

SCP command usage
 
SCP [-1246 bcpqrv] [-C cipher] [-F ssh_config] [-I identity_file] [-l limit] [-O ssh_option] [-P port] [-s program] [[[email protected] host1:] file1 [...] [[email protected] host2:] file2
Copy local files to the remote host

[Email protected]: file is separated by a colon.

 
$ SCP localfile [email protected]: // copy the local file to the remote/directory $ SCP localfile [email protected]: ~ // Copy the local file to the remote home directory
Copy the local folder to the remote host

-R indicates Recursion

$ SCP-r ABC [email protected]: ~
Copy remote files to a local device
 
SCP [email protected]: ~ /Awesome.txt./SCP-R [email protected]: ~ /Awesome.txt ./
Specified port
 
# SCP command port 4588scp-P 4588 [email protected]:/usr/local/sin. sh/home/Administrator

Use of SCP commands

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.