Usage of SCP under Linux

Source: Internet
Author: User
Tags sin secure copy

SCPCopy and rename the Copy file folder (including the folder itself) to all files in the folder and folderSCP-r/home/wwwroot/www/charts/util [email protected]192.168.1.65:/home/wwwroot/limesurvey_back/SCPall files under the Copy folder (not including the folder itself)SCP/home/wwwroot/www/charts/util/* [EMAIL PROTECTED]:/HOME/WWWROOT/LIMESURVEY_BACK/SCP Copy file and rename scp/home/wwwroot/www/charts/util/a.txt [email]  protected]:/home/wwwroot/limesurvey_back/scp/b.text usage of SCP under Linux SCP is secure copy, a command that is used to remotely copy files under Linux. Sometimes we need to get a file on a remote server that does not have an FTP server configured, or shared, and cannot get the files by conventional means, but only needs to be achieved with simple SCP commands.      First, copy the native files to the remote server #scp/home/administrator/news.txt [email protected]:/etc/squid/home/administrator/ The absolute path of the local file News.txt to be copied to the local file root on the server log on to the remote server by the root user (you can also use other equal rights  Users) 192.168.6.129 The IP address of the remote server (you can also use the domain name or machine name)/etc/squid to copy the local file to the path located on the remote server use of SCP under Linux -Flying sky-flying skies by logging on to the remote server by the root user, enter Yes to agree to establish SSH connection to the use of the SCP under Linux-flying sky-flying sky follow the prompts to enter the root user's password the usage of SCP under Linux-flying sky-flying sky to establish a connection and start passing                       Output files, showing percentages, actual time, and delivery speed. Copy the files on the remote server to the native #scp [email protected]:/usr/local/sin.sh/home/administratorremote Log on to the remote server via a remotely user (or use another user with equivalent privileges) to www.abc.com the domain name of the remote server (and, of course, the server IP address)/usr/local/sin.sh files on the remote server that you want to replicate to this computer/home/administrator copy the remote files to the local absolute path Note two: 1. If the remote server firewall has special restrictions, the SCP will have to go to the special port, the specific port depending on the As the case, the command format is as follows: #scp-P 4588 [email protected]:/usr/local/sin.sh/home/ Administrator2. Using SCP be aware that the user you are using has permission to read the appropriate files for the remote server.

Usage of SCP under Linux

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.