Hi everyone. I´m trying to run a ssh command on my mikrotik router from hassio using a switch.
switch:
- platform: command_line
switches:
mikrotik01_bloquear_ip:
command_on: ssh [email protected] ‘/ip firewall filter disable [find comment=”BLOCK_VALEN”]’
command_off: ssh [email protected] ‘/ip firewall filter enable [find comment=”BLOCK_VALEN”]’
The command is right, but doesn´t work on hassio. When I go to ssh addon (web interface) I run the command and it ask me for the password.
The question is: how can I insert my mikrotik password on the ssh command? is there any other way to do it?
Thanks a lot!!