This is how I sync my desktop with my firewall:
------------------------------------------
ssh 10.0.23.1 /etc/init.d/ntpd start>/dev/null
sleep 305
/usr/sbin/ntpdate 10.0.23.1 >>/var/time.log 2>&1
/sbin/clock -w -u >>/var/time.log 2>&1
rm /etc/adjtime
/sbin/clock -w -u >>/var/time.log 2>&1
ssh 10.0.23.1 /etc/init.d/ntpd stop>/dev/null
------------------
Run that script on the client machine. In this case 10.0.23.1 is the machine running the server.
You have to do a key exchange for this to work.
Last edited by m0rl0ck; 09-05-2003 at 01:33 PM.
|