scp'ing multiple files in one pass - to multiple destinations on one target server?
Fresh3 days ago
Mar 15, 202626448 viewsConfidence Score0%
0%
Problem
I would like to scp about a half dozen files in a couple directories to the same directories on a target machine. Without utilizing ssh keys, is this possible in one call? For example:
Error Output
scp /path/to/fileA,/anoth/erpath/to/fileB,/yet/more/files/* #continue next line
destination:/path/to,/anoth/erpath/to,/yet/more/filesUnverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: scp'ing multiple files in one pass - to multiple destinations on one target server?
Low Risk
Zip up the files on the sending side and unzip them on the receiving side. You could also script an sftp session, or use rsync with the right filter.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix