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

Remote ssh command: error 255

$
0
0

@Stooovie wrote:

Hi, I see I’m not alone with SSH commands not working from HA GUI but I also don’t see a working solution. Goal is to set an automation to reboot an ASUS router in the morning.

Problem: shell commands DO work from Terminal addon but DO NOT work from HA GUI or automations.

Command:
ssh admin@192.168.0.1 /sbin/reboot

I’m getting this:

ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `ssh -o "StrictHostKeyChecking=no" admin@192.168.0.1 /sbin/reboot`, return code: 255
NoneType: None

RSA key pair is pasted to the router’s web admin. I understand HA and Terminal addon are probably two different users with different credentials but I don’t know how to fix it.

Tried:
ssh -o "StrictHostKeyChecking=no" admin@192.168.0.1 /sbin/reboot
ssh -i /data/.ssh/id_rsa.pub admin@192.168.0.1 /sbin/reboot
ssh -i /data/.ssh/id_rsa admin@192.168.0.1 /sbin/reboot
ssh -i /root/.ssh/id_rsa.pub admin@192.168.0.1 /sbin/reboot
ssh -i /root/.ssh/id_rsa admin@192.168.0.1 /sbin/reboot

Setup:
Rpi4 with HA Core 0.108.5 via Ethernet directly into router
AC-1200 router

Please advise, thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95483

Trending Articles



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