HxHippy

scp

Secure copy (remote file copy program)

Overview

Copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.

Syntax

scp [OPTIONS] [[USER@]HOST1:]FILE1 ... [[USER@]HOST2:]FILE2

Examples

$ scp file.txt [email protected]:/remote/dir

Copy file.txt to /remote/dir on example.com.

$ scp [email protected]:/remote/file.txt .

Copy /remote/file.txt from example.com to the current directory.

securecopyremotefiletransferscpuploaddownload