It is not possible to send multiple remote locations with a single scp command. It can hold several source files, but only one destination. Using only the scp command, you need to run it twice.
scp file1 file2 user@192.168.1.114 :/location1 scp file1 file2 user@192.168.1.114 :/location2
You can turn this into a "one-liner" by running the for loop. In bash for example:
for REMOTE in " user@192.168.1.114 :/location1" " user@192.168.1.114 :/location2"; do scp file1 file2 $REMOTE; done
scp still executes several times, but the loop iterates. However, it’s easier for me to run the command once, press the up arrow (which returns the original command in most environments) and just change the remote location and resend.
source share