Run SSH commands via Cronjob

Hi,

Hoping someone can help me with what is (hopefully) an easy thing to do - just I don't know how Run SSH commands via Cronjob

We have various tasks we do via SSH on a daily or semi-daily basis, such as clearing disk space. It strikes me that these could be placed in a text file and run by the cron. I can setup a cron job no problem, but first need to know would it work, or would SSH authentication be a problem (and/or security risk) that way? And if it would work, where should I place the text file etc?

Cheers,
Kevin Run SSH commands via Cronjob

 

 

 

 

Top