Online Linux Terminal Logo
OnlineLinuxTerminal
Netzwerk & ÜbertragungCLI Manual

$scp

Securely copy files and directories between hosts over SSH connection.

BefehlssyntaxPOSIX Standard
scp [OPTIONS] SOURCE DEST
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

`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.

Wichtige Optionen und Flags

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.

Praktische Anwendungsbeispiele

#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.