Online Linux Terminal Logo
OnlineLinuxTerminal
Сеть и передача данныхCLI Manual

$scp

Securely copy files and directories between hosts over SSH connection.

Синтаксис командыPOSIX Standard
scp [OPTIONS] SOURCE DEST
Сообщество Linux2.4k Онлайн

Общайтесь с пользователями Linux, учите команды и скачивайте шпаргалки.

Попробуйте в интерактивной песочнице

Клиентская симуляция без установки с мгновенным результатом.

Открыть в полноэкранном терминале ↗
bash — terminal

Обзор и принцип работы

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

Основные флаги и параметры команды

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.

Практические примеры использования

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