How to upload a file from the command line with FTP or SSH You can use scp to copy to a remote machine.