How to add new key to authorized_keys file

Red Squirrel

Renowned Member
May 31, 2014
46
9
73
I was reviewing my backups and realized that I didn't have a backup job setup to pull down anything from my online PVE host. So I added my local backup server's .pub file content to the authorized_keys file, not thinking that PVE uses this for cluster communication I presume. This particular PVE host is not in a cluster it's on a single dedicated server at OVH.

In doing this I realized that it broke the web console, the VMs are still running but now nothing works. (managed to get it working had to restart pve-cluster and pveproxy services)

How do I go about restoring this to working order, and how would I go about adding an authorized key properly?

This is a PVE 6.4 server so it's older, and I do eventually want to upgrade but it's tricky as it's a leased server and the only way to do it is to lease another server so I can migrate stuff properly, and I just have not gotten around to doing that, and spending the money for it.
 
Last edited:
I added to it, which is odd why it broke stuff. I rolled back now and can access the web console again, but I'm hoping there's a way I can add an additional key so that I can pull a backup. The dumps are stored as root so I need to be able to SSH in as root (with a key) for the backup job to work.
 
Last edited:
Figured it out! Not sure why it originally broke the web interface though... but now I have that working, and also can login from my backup server as root. Turns out I had root login disabled in the /etc/ssh/sshd_config file.