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.
Hmm there are no files there at all.
OK try:
ls /root/.ssh
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
done and i see the files you talked about
See private mail.
Thanks Man.
I just added my proxmox and nuc temp to my HA setup.
This is the quick script.
This is a typo - should be: cp /root/.ssh/id_rsa /config
Sorry to Bring it up. But I got this.
Also when I run a command I think I got the temp right
But the sensor in HA is unkown
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