synchronize time and date
good day!
Please help!
I would like to synchronize the time of server to its client PC
through ssh and I created a script but it didn't work for me. It looks like this.
current_date=`date "=%Y-%m-%d %H:%M:%S"`
ssh user@IP; `date --set=$current_date`;
exit 0
thanks
|