Skip to content
GitHub

scp


SCP / Secure copy (remote file copy program).

scp [OPTIONS]
usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
            [-J destination] [-l limit] [-o ssh_option] [-P port]
            [-S program] source ... target
scp <file> <user>@<ip-address>:~/
scp <user>@<ip-address>:~/<file> .
scp -i ~/key.pub -P2222 john@10.10.10.10:~/hashes.ntds .
scp -i ~/key.pub hashes.zip proxy:~/
scp <user>@<ip-address>:/directory/* .

Copy directory recursively from remote server

Section titled “Copy directory recursively from remote server”
scp -r <user>@<ip-address>:/directory local_directory