Online Linux Terminal Logo
OnlineLinuxTerminal
Red y transferenciaCLI Manual

$scp

Securely copy files and directories between hosts over SSH connection.

Sintaxis del comandoPOSIX Standard
scp [OPTIONS] SOURCE DEST
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

`scp` (Secure Copy Protocol) transfers files securely between a local host and a remote host, or between two remote servers, using the same authentication and encryption as SSH.

Opciones y banderas comunes

Flag / OptionDescription
-rRecursively copy entire directories.
-P [port]Specify port to connect to on the remote host.
-i [keyfile]Identity file for SSH private key authentication.

Ejemplos prácticos del mundo real

#1Copy a local file to remote server
scp notes.txt user@remote-server:/home/user/docs/

Uploads notes.txt to the remote server directory over SSH.