Hi everyone!
I just noticed that on a freshly installed Proxmox node the root user already comes with the .ssh folder. Into /root/.ssh there is the pair id_rsa/id_rsa.pub, a config file and the authorized_keys, that is a symlink to /etc/pve/priv/authorized_keys.
Within this file, the root's public key is pre-loaded. If I delete it, it reappears upon reboot. If I delete the root's ssh key, it's generated again and the public one is stored inside /etc/pve/priv/authorized_keys.
What's the purpose of this mechanism? Is it a good idea to disable it? If so, how?
I just noticed that on a freshly installed Proxmox node the root user already comes with the .ssh folder. Into /root/.ssh there is the pair id_rsa/id_rsa.pub, a config file and the authorized_keys, that is a symlink to /etc/pve/priv/authorized_keys.
Within this file, the root's public key is pre-loaded. If I delete it, it reappears upon reboot. If I delete the root's ssh key, it's generated again and the public one is stored inside /etc/pve/priv/authorized_keys.
What's the purpose of this mechanism? Is it a good idea to disable it? If so, how?