Remote File copying on a VM instance

Source: Internet
Author: User
Tags scp command
To remotely copy files through LinuxVPS, you must learn how to use the SCP command. SCP is a secure remote file copy command based on ssh login in Linux. The SCP command of Linux can copy files and directories between Linux servers. for example, to copy the current file to another remote host, run the following command: scp-P Port

To remotely copy files through Linux VPS, you must learn how to use the SCP command.
SCP is a secure remote file copy command based on ssh login in Linux.
The SCP command of Linux can copy files and directories between Linux servers.
It is easy to operate. for example, you need to copy the current file to another remote host,
Run the following command:

Scp-P Port/home/1.gif root@172.1.2.3:/home/root

Tip: If the port number is not the default 22, add a-P (case sensitive) port number after scp.

/Home/absolute path of the local file

1. gif files to be copied to the server

Root log on to the remote server as the root user

172.1.2.3 IP address of the remote server

/Home/root copy the local file to the path on the remote server

Then you will be prompted to enter the logon password of the root user of the other 172.1.2.3 host, and then start cp and ungzip.
  

If you want to copy files from the remote host to the current system, it is also very easy:
Scp root@172.1.2.3:/home/abc.gif/home/root

The format of the copied folder is
Scp-r root@172.1.2.3:/home // Local Directory

Related Article

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.