Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

SSH from shell_command

$
0
0

@Coltuxumab wrote:

So I have 2 pi’s, one running hass.io and the other running Lovelace in kiosk mode. I want to have a shell_command SSH into the kiosk pi and restart it.

I generated keys and have them on both devices, and I can get it working with a SSH command typed into the GUI from the SSH addon in home assistant. I figured that would mean it would work as a shell command, but unfortunately I’m getting a 255 error in the log when I trigger it.

shell_command:
  kiosk_reboot: 'ssh pi@10.0.1.77 sudo reboot'

Again, the above command in quotes by itself run on the GUI of the SSH add-on within home assistant works perfectly.

Error:
Error running command: `ssh pi@10.0.1.77 sudo reboot`, return code: 255

NoneType: None

What am I missing?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>