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