For some reason, need to change a VPS, so need to transfer files for the server. But when I was in the original server to pack the things, the problem comes, the package is not half, the hint server space is insufficient! This last time because the space is not enough servers are down, then how to do? There's no way to pack if there's not enough space! Then suddenly think of SFTP, because I did not install FTP server, has been using SFTP to when FTP, so the internet search for a while, and really found an SCP command. It is also very simple to use, the old server IP is 204.152.221.90, to the above/home/wwwroot file copy, then on the new server execution:
Copy Code code as follows:
Scp-r 204.152.221.90:/home/wwwroot/home/wwwroot
Then ask if you want to save the key, enter Yes and then press ENTER, and then ask you to enter 204.152.221.90 the server's root password, and then start copying, ash is often useful!
Note: If you are prompted to "Scp:command not found" in the use procedure, your server does not have an SCP installed, please use the following command to install it. Also note that when using the SCP, two servers are required to install the SCP, and no one side is not installed to normal use:
Copy Code code as follows:
Yum-y Install Openssh-clients