-
How did you set up the crontab entry? Did you use sudo or did you run it as user openhabian? What ever user you ran crontab as is the user that the script will run as.
-
Does the script call sudo or the script itself needs to be run with sudo. If the former, make sure that those commands can be run as the openhabian user as sudo without password (search for “visudo” on google for details). If the latter, use sudo to run crontab and the cron job will be run as root to begin with.
What ever user the cron job is running under will need to have the proper ssh certs configured.