Usage of SCP under Linux

Source: Internet
Author: User
Tags sin

The Copy folder (including the folder itself)

Scp-r/home/wwwroot/www/charts/util [Email PROTECTED]:/HOME/WWWROOT/LIMESURVEY_BACK/SCP

All files under the Copy folder (not including the folder itself)

scp/home/wwwroot/www/charts/util/* [Email PROTECTED]:/HOME/WWWROOT/LIMESURVEY_BACK/SCP

Rename the Copy file

scp/home/wwwroot/www/charts/util/a.txt [Email Protected]:/home/wwwroot/limesurvey_back/scp/b.text

/home/wwwroot/www/charts/util/Local Absolute path

A.txt to copy

Root logs on to the remote server through the root user

192.168.1.65 the IP address of the remote server

/HOME/WWWROOT/LIMESURVEY_BACK/SCP copy to the path on the remote server (note the IP address after:)

Note: The user name and password are usually entered later

Copy the files on the remote server to the native

#scp [Email Protected]:/usr/local/sin.sh/home/administrator

Remote logs on to the server remotely via a long-distance user (other users with equivalent privileges can also be used)

www.abc.com the domain name of the remote server (you can also use the server IP address)

/usr/local/sin.sh files that are located on a remote server to be copied to this computer

/home/administrator to copy remote files to the local absolute path

Note two points:

1. If the remote server firewall has special restrictions, the SCP will go to the special port, depending on what port, depending on the situation, the command format is as follows:

#scp-P 4588 [email Protected]:/usr/local/sin.sh/home/administrator

2. Use SCP be aware that the user you are using has permission to read the appropriate files for the remote server.

Pick from http://www.cnblogs.com/wanqieddy/archive/2012/08/02/2619928.html

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.