linux scp all files and folders in folder code example Example: scp all files in directory scp -r myfoldername [email protected]:/home/myfoldername