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