Use of SCP, remote copy copy

Source: Internet
Author: User
Tags scp command secure copy

SCP, secure copy, remote copy under Linux

Use the SCP command without configuring the FTP server or sharing files


Copy the files on the local host to the remote server

#scp/data/finance.data finance.order.data [email protected]:/data/


Copy the files on the remote server to the local host

#scp [Email Protected]:/data/finace.data finance.order.data/data/


However, this method must modify the SSHD service's configuration file,/etc/ssh/sshd_config

Permitrootlogin Yes, allows the root user to log in remotely and enter a password

If you need to log in with key, you must configure this option.

After modifying the Sshd_config configuration file, a restart is required, service sshd restart

Let go of the root user password login, SCP remote copy need to close the password login permissions, change back to key login, security needs


Use of SCP, remote copy copy

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.