Scp examples
Copy the file “foobar.txt” from a remote host to the local host
$ scp username@remotehost.edu:foobar.txt /path/to/directory
Copy the file “foobar.txt” from the local host to a remote host
$ scp foobar.txt username@remotehost.edu:/path/to/directory
Copy the file “foobar.txt” from remote host “server1” to remote host “server2”
$ scp username@server1:/some/remote/directory/foobar.txt \ username@server2:/some/remote/directory/