add public host key to authorized_keys is not working

falo01

New Member
Jul 7, 2025
2
0
1
I tried adding a public key to the authorized_keys file in the /etc/pve/priv folder. However, that didn't work because the file and folder permissions were incorrect.

The folder and files are owned by root:www-data. The chown, chmod, rm, and touch commands are not working due to permission denied errors. This is a new Proxmox v9 cluster installed from a standard USB stick with a Proxmox ISO. The cluster has three hosts, and all of them exhibit the same behavior.

All related articles in the forum show root:root as the owner. How can I solve this issue without reinstalling Proxmox?
 
You are not allowed to change permission of any files inside /etc/pve (by design).
 
Last edited:
And how could I add a public host key to the authorized_keys file? I want connect from a management jump host to the Proxmox host per ssh.
 
"files" in /etc/pve are no real files, but a view of the cluster-db /var/lib/pve-cluster/config.db provided by fuse.