Helpful exmpales for Secure Copy (scp)

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/directory

Copy a file named xyz.txt from the local host to a remote host:
$: scp xyz.txt user@remote.host:/your/remote/directory
  • server, scp
  • 71 Users Found This Useful
Was this answer helpful?