Thanks so much for replying. This is has been bugging me no end.
I did think your post did answer my problem.
Here’s what happened, this from my HASSIO host (on docker), logging in as root:
cp private_key.ppk /config/
cp private_key.ppk ./ssh_keys/
chmod 700 ssh_keys/
chmod 600 ssh_keys/private_key.ppk
$ ssh -i /config/ssh_keys/private_key.ppk -o 'StrictHostKeyChecking=no' [email protected] sudo /sbin/shutdown -h now
Load key "/config/ssh_keys/private_key.ppk": invalid format
[email protected]'s password:
I ENTERED THE P/WORD…
Connection to 192.168.1.237 closed by remote host.
I GUESS IT SHUTDOWN AT THIS POINT
When I go via the HASSIO CLI I can ssh to Octoprint CLI without password:
$ ssh [email protected]
Linux octopi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
BLAH BLAH BLAH
I tried this on the Octoprint server today for good measure (being quite clueless probably):
$ sudo visudo
pi ALL=(ALL) PASSWD: ALL
This is probably a massive security hole, but I’m trying everything!
Am I best off to try and issue CURL commands to PUT directly to the Octoprint server? Seems to be a popular approach from what I can see…