Hello there,
I am trying to setup my ASUSWRT with SSH Keys, here is my config:
asuswrt:
host: !secret asus_hostname
username: "admin"
port: !secret asus_port
ssh_key: "/root/.ssh/ssh_host_rsa_key"
sensors:
- devices
- download
- upload
- download_speed
- upload_speed
I am using the SSH keys I found in the path “/data/host_keys”, which I copied to the path “/root/.ssh/”.
I SSH’ed into Home Assistant, and managed to SSH from HA to my Asus router using the private key “ssh_host_rsa_key”, so this confirms I have setup the Asus router correctly.
The problem is, when I validate the above configuration I get the following error:
Invalid config for [asuswrt]: not a file for dictionary value @ data[‘asuswrt’][‘ssh_key’]. Got ‘/root/.ssh/ssh_host_rsa_key’. (See /config/configuration.yaml, line 14).
I tried a few different variations but without any luck.
The file “/root/.ssh/ssh_host_rsa_key” is owned by root with 600 permissions.
Please advise.