1. Get the files of the remote server
scp root@host_ip:/root/tmp.log /home/tmp.log
The remote vps is not the port to be specified on port 22
scp -P 29771 root@host_ip:/root/tmp.log /home/tmp.log
2. Send the local file to the remote server
local execution
scp /home/tmp.log root@host_ip:/root/tmp.log