How to monitor Proxmox CPU temp

The SSH addon, we want to know what SSH keys you have already generated.

You keep forgetting the space. There is a space after -lah and it’s /root/.ssh/ not /root.ssh

sorry yes.
image

Hmm there are no files there at all.
OK try:

ls /root/.ssh

image

OK so the generated file has gone, the add_on was probably restarted or something.
So we need to start from the beginning.

ssh-keygen

When it says what file do you want to save it to, instead of pressing enter, type:

/config/.ssh/id_rsa

and then it will already be saved in the right place, and we won’t need to copy it later.
Let me know when you have done that, and check the file exists by running

ls -lah /config/.ssh

You should see an id_rsa file and an id_rsa.pub file.

will report back. in retrospect, i never pressed enter when it asks me to what file do I want to save it. i always put ssh-copy-id as advised in the op

ok here we go
image

done and i see the files you talked about

See private mail.

when I run this command it is asking me for root password. Can you help me?

Thanks Man.

I just added my proxmox and nuc temp to my HA setup.

This is the quick script.

1 Like

This is a typo - should be: cp /root/.ssh/id_rsa /config

1 Like

Thanks @hainesy. I’ve updated the original post.

Sorry to Bring it up. But I got this.1662401465249
1662401489104

Also when I run a command I think I got the temp right1662401510863

But the sensor in HA is unkown1662401553740

Seems i cannot go inside the PROXMOX like this
chemi@ubuntuserver:~$ ssh [email protected]
Enter passphrase for key ‘/home/chemi/.ssh/id_rsa’:
hostfile_replace_entries: link /home/chemi/.ssh/known_hosts to /home/chemi/.ssh/known_hosts.old: Operation not permitted
update_known_hosts: hostfile_replace_entries failed for /home/chemi/.ssh/known_hosts: Operation not permitted
Linux proxmox 5.15.64-1-pve #1 SMP PVE 5.15.64-1 (Thu, 13 Oct 2022 10:30:34 +0200) x86_64

What can i do?

Ive got exaclty the same problem with this line:

  - platform: command_line
    name: 'temperature_cpu_nuc'
    unique_id: temperature_cpu_nuc
    command: ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -q [email protected] cat /sys/class/thermal/thermal_zone2/temp
    unit_of_measurement: "°C"

Thanks, for just checking the CPU temp from HA this is more than enough :slight_smile:

The /root folder was disguised as a /data folder for me .
Снимок экрана 2023-10-02 151825
then I did everything as standard


And everything is fine.
Снимок экрана 2023-10-02 152209