Switch: Interactive Authentication Required

Hi, i used HA core in the past so it was easy to make shell commands to himself.

I migrated to supervisor. I did the ssh id copy, and from console i can run basic commands like date, but no stop services.

I granted pi users on sudoers with:

pi  ALL=(ALL:ALL) ALL

but still didnt work:
image

Any idea? Thanks in advanced!

SOLVED: I found the solution so i reply myself:

the correct content on /etc/sudoers file is this one:

pi ALL=(ALL) NOPASSWD: ALL

and the command must use sudo this way:

ssh -i id_rsa -o StrictHostKeyChecking=no [email protected] "sudo systemctl stop kodi"

And this works!