Copy multiple files from A to B through passwordless ssh

view story

http://www.unix.com – hi all, I need to write one script to copy multiple imp files like /etc/passwd /etc/group /etc/shadow /etc/printers.conf from system A, System B and system C to system Z and I need to execute this script on System Z. like if system is equal A copy 1 2 3 files to system Z into /A-files if system is equal B copy 4 5 6 files to system z into /B-files I have set password less ssh from and to A,B,C to Z and vice versa. Could you please guide me as how to go about this..? Thanks in Advance. Manali. (HowTos)