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