scp

Linux · Network · available in the simulator

What it does

Copies files over SSH.

Syntax

scp [opciones] origen destino

Options and parameters

  • -r

    Recursively copy entire directories.

    scp -r carpeta ana@servidor:/tmp
  • -P

    Port to connect to on the remote host (uppercase, unlike ssh).

  • -i

    Use the specified private key file.

  • -C

    Enable compression during transfer.

  • -p

    Preserve modification times, access times, and permissions.

Usage examples

  • scp archivo user@host:/tmp/
  • scp -r carpeta ana@servidor:/tmp
Practise scp

Related commands