Does Proxmox add authorized_keys on its own to root? Should I be worried?

Panoramic

New Member
Aug 9, 2024
2
0
1
Yesterday I installed Proxmox for the first time. I'm still learning how it works and watching tutorials.

I have a question though.

Today while adding my ssh key in authorized_keys, I found a new key, with the label
Code:
root@<MyHostname>
. I added my key, commented it out, rebooted, and the key came back. Is this proxmox? Or have I been compromised somehow?

I still barely did anything with Proxmox, no backups or clusters. I just created a VM and added the firewall. And all this is happening in my home network (no public access), which is also supposedly secure. I'm worried I messed something up. In what circumstances does Proxmox add authorized_keys to root? How can I track these keys?

Thank you.
 
See: https://pve.proxmox.com/wiki/Cluster_Manager#_role_of_ssh_in_proxmox_ve_clusters

SSH setup​

On Proxmox VE systems, the following changes are made to the SSH configuration/setup:
  • the root user’s SSH client config gets setup to prefer AES over ChaCha20
  • the root user’s authorized_keys file gets linked to /etc/pve/priv/authorized_keys, merging all authorized keys within a cluster
  • sshd is configured to allow logging in as root with a password

Yeah, so keep it on the private network.

How can I track these keys?

PVE is not concerned about security, so - keep it separate.

https://bugzilla.proxmox.com/show_bug.cgi?id=5060
https://bugzilla.proxmox.com/show_bug.cgi?id=4670
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!