Smart way to copy multiple files from different paths usinc scp
问题 I would like to know an easy way to use scp to copy files and folders that are present in different paths on my file system. The ssh destination server requests a password and I cannot put this in configuration files. I know that scp doesn't have a password parameter that I could supply from a script, so for now I must copy each file or directory one by one, writing my password every time. 回答1: in addition to the already mentioned glob: you can use {,} to define alternative paths/pathparts in