Linux

scp

CautionCopy over SSH

scp <file> <user>@<host>:<path>

Securely copies files/dirs over SSH.

Examples

  • scp -r ./site user@web01:/var/www/Transfer a site dir

Syntax

scp [-r] <src> <user>@<host>:<dest>

Before you run it

May overwrite; verify the target host.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store