I have docker running on Debian. Current port is 22222.
I can connect fine using putty on my PC, I just can’t get any command line sensors to run. I’m using command line sensors to run commands on other PC’s on my network to get info.
This is my ssh addon config (username and password removed):
{
"ssh": {
"username": "username",
"password": "password",
"authorized_keys": [],
"sftp": false,
"compatibility_mode": false,
"allow_agent_forwarding": false,
"allow_remote_port_forwarding": false,
"allow_tcp_forwarding": false
},
"web": {
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
},
"share_sessions": true,
"packages": [],
"init_commands": []
}
So, when running the addon the first time, it creates the keys and saves them to a bunch of files. I have those and have added them to the remote PC, but running any command line sensor from HA still fails as it keeps asking for the password.
This is one of my command line sensors for example"
- platform: command_line
command: ssh [email protected] df -t fuse.mergerfs -h | awk 'END {print $5}' | sed 's/%//'
name: Server Drivepool Usage
unit_of_measurement: '%'
scan_interval: 3600
watching the log viewer in Portainer.io, I use homeassistant.update_entity
to manually update the sensor, and the output error is “Host key verification failed”.
I’m not sure if I’ve missed a step somewhere, or what, but it just doesn’t seem to want to work.