linux remote file transfer

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325766821&siteId=291194637