I detail below how to make copies of files and directories using SCP from both remote host to local and vice versa, in all the examples I specify authentication using certificate with the -i option, if you want to use the user / password is to remove this option and the path of the certificate file. To copy directories use the -r option.

For those who use Windows as SO I use the command scp inside Cygwin (https://www.cygwin.com/).

The scheme of the command is:

scp options source destination

Both the source and the destination have a format:

[username@host:]directory_or_filename

If [username@host:] is not specified, this parameter refers to local, and if is specified reference to the remote host.

Copy file example from remote host to local:

scp -i cert adm@10.0.0.1:/tmp/app1.log /home/01234567/app1.log

Copy file example from local to remote host:

scp -i cert /home/01234567/app1.log adm@10.0.0.1:/tmp/app1.log

Copy directory example from remote host to local::

scp -r -i cert adm@10.0.0.1:/tmp/vms /home/01234567/vms

Copy directory example from local to remote host:

scp -r -i cert /home/01234567/vms adm@10.0.0.1:/tmp/vms