Transfer file from attacking machine to remote host.
scp<File><User>@<IP>:/<path>/<File>scpexploit.shroot@10.10.10.10:/tmp/exploit.sh# With key filescp<File>-i<id_rsa><User>@<IP>:/<path>/<File>scpexploit.sh-i/home/id_rsaroot@10.10.10.10:/tmp/exploit.sh
Download from remote host to local system
scp<User>@<IP>:/<Path>/<File>/<LocalPath>scproot@10.10.10.10:/tmp/passwords.txt/home/kali/passwords.txt# With Key Filescp-i<id_rsa><User>@<IP>:/<Path>/<File>/<LocalPath>scp-iid_rsaroot@10.10.10.10:/tmp/passwords.txt/home/kali/passwords.txt