scp multi files and documents.
using expect to connect ssh remote and print password automatically.
using for in shell script to pass arguments to the expect command to scp multiple files.
so, I write a file to connect ssh host automatically and scp the directory at once. and write another shell script to do for loop to do connect using expect for many times.
and when I scp directories, I first using a shell script to tar each directory then I can scp the directory directly.