copy file to folder scp code example Example: scp copy all files ion folder $ scp -r ~/local_dir [email protected]:/var/www/html/target_dir