本機IP:x.x.x.1
需要拷貝的機器IP:x.x.x.2
用戶名:ssh_user
目的:將本機中source_path路徑下的文件或目錄拷貝到另一台機器的destination_path/路徑下
復制文件:
scp /source_path ssh_user@x.x.x.2:/destination_path/
復制目錄:
scp -rp /source_path ssh_user@x.x.x.2:/destination_path/
