I have a Raspberry pi running octopi for my 3D-printer. i’m looking for a way to send a SSH command to this pi with my openhab device.
i think it should be something like this:
executeCommandLine("ssh user@octopi-server 'sudo /sbin/shutdown -h now'",1000)
but it kind of obviously sends me a “Host key verification failed.”
user and root access etc in linux really is totally beyond me, i have no idea how to give my openhab server permission to execute commands on another server…
any pointers to what i could try?