SCP transmission between server file or directory

  1. SCP command gets the directory on the remote server: scp -P port -r user @ ip: / home / xxx / / home / xxx /
  2. SCP command gets the files on a remote server: scp -P port user @ ip: /home/xxx.xxx /home/xxx.xxx
  3. SCP command will upload local directory to a remote server: scp -P port -r / home / xxx / user @ ip: / home / xxx /
  4. SCP command to upload local files to a remote server: scp -P port /home/xxx.xxx user @ ip: /home/xxx.xxx

Guess you like

Origin blog.csdn.net/lierwang2017/article/details/94734266