Multiple file copy
Ok I think I'm about to ask a really stupid question, but here goes!
If I have a DHCP, Web and DNS server IP 192.168.1.1 and say I want to copy a firewall script to all the other PC's on the network IP 192.168.1.1/24 how can it be done from the 1 PC(192.168.1.1)? Or is it not possible? Thanx for any help!!! Jimmy |
u can ssh in to the pcs
|
Use scp to copy the file to the PCs.
Example: Code:
scp firewall <user>@<ip_address>:<path> Code:
#!/bin/ksh |
FTP? Another newbie question, how would I be able to set that up so I can copy files from the 1 location to all the PC's? Is is difficult to do?
|
You need FTP servers on all the target machines and then in the same fashion as I showed you with scp you put the files to the FTP servers. However, the scp version should be ok IMO.
Please explain what you want to do in order to get the files to the machines. One command and fully automatic, which might require more work in order to get it working or is it okey to have some semi-automated thing like the scp-example, which in turn requires next to no work at all. More details please! |
..or you can have one FTP server on the main machine and then FTP clients which get the files from it. Nothing is impossible you know ;)
|
I was thinking along the lines of 1 command and fully automated if its possible.
|
Take a look at this:
http://www.linuxgazette.com/node/view/193 This is more or less what I showed you, but scp can also be set up to not use passwords. This is done by copying the ssh public key of the user to all the remote machines and then you are automatically authenticated and logged in. Hope this helps you! |
That sounds like what I was after. Thanx 4 yr help, much appreciated
|
All times are GMT -5. The time now is 03:16 AM. |