scp to localhost code example
Example 1: how to copy a file to a remote server using the command line
scp file.txt [email protected]:/remote/directory
Example 2: scp server to local
scp [email protected]:/remote/file.txt /local/directory
scp file.txt [email protected]:/remote/directory
scp [email protected]:/remote/file.txt /local/directory