I'm looking to list all files in a folder:
ABC123.cfg
XYZ456.cfg
EFG999.cfg
The file names, without the .cfg relate to a remote server name, ABC123 etc.
I want to copy a couple of files to each of the remote servers.
So, look up the filenames, but take the name without the .cfg.  Then
scp filename.txt username@ABC123:/home/username/
For each remote server, overwriting the destination file if exists.
Each remote server uses the same username and password.
Can I use a password in the scp command?
 
    