/etc/pve/priv/authorized_keys

adfs1

Renowned Member
May 20, 2014
5
0
66
Hello!

I had a well configured 4 node pve cluster, but I overwrited the /root/.ssh/authorized_keys file (on all the 4 pve nodes), which is sym link to /etc/pve/priv/authorized_keys.
Can I reproduce the /etc/pve/priv/authorized_keys file?

Thanks,
 
Thanks for Your answer!
But I wonder, where I can find the public keys? I try to add all node's /etc/pve/authkey.pub and /etc/ssh/ssh_host_rsa_key.pub to the all node's authorized_keys file, but no success. Which public keys are used by cluster for the ssh tunel?
 
Oh! I find the solution :D!
The root's .ssh folder contain the private-public key pair.
I just copied from all node's /root/.ssh/id_rsa.pub file to the /root/.ssh/authorized_keys file, and everything works ok!

Thanks!