Using SCP is a recommended method to copy files either to or from a Pwn Pro sensor, because it uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Provided below are various examples of how to use this useful command.

Copy the file "foobar.txt" from a remote host to the local host

$ scp pwnie@remotehost:foobar.txt /some/local/directory

Copy the file "foobar.txt" from the local host to a remote host

$ scp foobar.txt pwnie@remotehost:/some/remote/directory