Shell command stopped working?

I have a button on my desktop that causes a shell command to be sent to an Ubuntu computer to run VLC and stream video from my porch camera.
It worked fine until a week ago when the Ubuntu computer quit working. I have replaced the Ubuntu computer, installed VLC and copied from a backup my shell script that runs VLC.

On the Ubuntu computer, the shell script does start VLC and stream the porch camera.

From the Home Assistant terminal this starts VLC and the camera stream on the Ubuntu computer (192.168.1.126).
ssh -i /root/config/id_rsa -o StrictHostKeyChecking=no [email protected] "bash /home/steve/scripts/vlc/runvlc-porch.sh &"

This tells me that my SSH key pair is OK and that I can run the script from Home Asssistant.

In my configuration.yaml → shell_commands.yaml I have this:

#shell_command:
  runvlc_porch: 'ssh -i /root/config/id_rsa -o StrictHostKeyChecking=no [email protected] "bash /home/steve/scripts/vlc/runvlc-porch.sh &"'

But this button card does not work:

        - name: Porch
          show_name: true
          show_icon: true
          type: button
          tap_action:
            action: perform-action
            perform_action: shell_command.runvlc_porch
            target: {}
          icon: mdi:television
          icon_height: 25px

Recall, the only thing that has changed is the Ubuntu computer.
The button card on my desktop has been working for months until the Ubuntu computer was replaced.
So, I am baffled why the Home Assistant end has stopped working.

Any ideas? Is there anything wrong with my shell command? (All I changed was the IP address of the target computer).


Sorry this is a little vague but I had same problem >1 year ago when replaced a linux based router and old RSA key wouldn’t work if HA tried to run a shell command. I ended up generating a new key using EdDSA . In my readings at the time the problem was RSA wasn’t safe anymore. There had been breaking changes back around that time saying RSA was going to be depricated.

Thanks, but if my key pair was not good than I wouldn’t be able to run the shell script from Home Assistant terminal.

UPDATE:
Spoke too soon. I tried to run the shell_command from Developers tools and got, you guessed it, a key error.

Identity file /root/config/id_rsa not accessible: No such file or directory.\nPermission denied, please try again.\r\nPermission denied, please try again.\r\[email protected]: Permission denied (publickey,password)."