Resources · April 25, 2021 0

Syntax of scp command

# scp <options> <files_or_directories> user@target_host:/<folder>

# scp <options> user@target_host:/files   <folder_local_system>

Some of the most used options in scp command are:

  •  -C         enable compression
  •  -i           identity file or private key
  •  -l           limit the bandwidth while copying
  •  -P          ssh port number of target host
  •  -p          preserves permissions, modes and access time of files while copying
  •  -q          suppress warning message of SSH
  •   -r          copy files and directories recursively
  •   -v          verbose output