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