[K12OSN] remote home directories
Scott Sherrill
scott at remc1.org
Thu Sep 8 17:29:57 UTC 2005
Brandon Kovach wrote:
>Scott, that's pretty kewl and I understand how all that works except the
>SSH key.
>
>
You have to do 2 things. You have to generate a key on the sending
server, and you have to accept that same key on the client server.
There are a couple websites out there with the directions (sorry its not
specific but I am mired today).
>All I know about SSH is that I can do it. I am in the dark about how to
>make it go automagically as in the cron job you mentioned below.
>
>
>
The cron part is easier to explain ;-)
Create the following line in /etc/cron.d/pushpass
# update packages nightly from RedHat
# field allowed values
# ----- --------------
# minute 0-59
# hour 0-23
# day of month 1-31
# month 1-12 (or names, see below)
# day of week 0-7 (0 or 7 is Sun, or use names)
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass www
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass nessie
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass nessie3
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass nessie4
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass draco
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass hydra1
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /root/bin/pushpass hydra2
Cron is just a service that runs programs for you at regular intervals.
The above then says run pushpass to each server every 5min. You will
need to specify the location of your app (I kept mine in
/root/bin/pushpass).
More information about the K12OSN
mailing list