scp all files in currrent directory code example
Example 1: scp all files in directory
scp -r myfoldername [email protected]:/home/myfoldername
Example 2: scp all files in currrent directory
scp -r "${PWD}" ${remote}:${dst_path}
scp -r myfoldername [email protected]:/home/myfoldername
scp -r "${PWD}" ${remote}:${dst_path}