Command_line ssh failed on HA supervised

Guys can someone help me.

trying to run command_line and connect to my proxmox server from the VM running supervised HA. Its keep on giving me

Warning: Identity file /root/.ssh/id_rsa not accessible: No such file or directory. [email protected]: Permission denied (publickey).

unsure where to put id_rsa on HA docker or there are some other way to do it? Help

from the VM terminal I can run the SSH command and connect to the Proxmox machine no problem

- platform: command_line
  name: temperature_cpu_1
  command: 'ssh -i /root/.ssh/id_rsa [email protected] cat /sys/class/hwmon/hwmon0/temp1_input 2> /config/command.log'
  value_template: "{{ value | int / 1000 }}"
  unit_of_measurement: "°C"

Create a .ssh hidden folder under config. This works for me.

shell_command.yaml

  switchbot_updates: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /config/.ssh/id_ha [email protected] node /home/pi/bin/mqtt/switchbot/scan.js'

Take a look at this, should help

Thanks guys, I just thinking about that and get your messages. It works