SCP / Secure copy (remote file copy program)

Usage

scp [OPTIONS]

Flags

usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
            [-J destination] [-l limit] [-o ssh_option] [-P port]
            [-S program] source ... target

Examples

Transfer file to target (SSH)

scp <file> <user>@<ip-address>:~/

Receive file from target (SSH)

scp <user>@<ip-address>:~/<file> .

Receive file with key and specific port

scp -i ~/key.pub -P2222 [email protected]:~/hashes.ntds .

Send file with key

scp -i ~/key.pub hashes.zip proxy:~/

Copy all files in directory

scp <user>@<ip-address>:/directory/* .

Copy directory recursively from remote server

scp -r <user>@<ip-address>:/directory local_directory

URL List