scp allows you to copy files to, from, or between different hosts. It relays on ssh and provides the same authentication and same level of security.Copy a file named xyz.txt from a remote host to the local host:$: scp user@remote.host:xyz.txt /your/local/directoryCopy a file named xyz.txt from the local host to a remote host:$: scp xyz.txt user@remote.host:/your/remote/directory