[SOLVED] Proxmox v6 default ssh key in authorized_keys file

Nov 16, 2018
30
4
13
47
Belgium
Hello!

I just installed a proxmox v6. When I wanted to add my ssh key in authorized_keys file, I see that there is already one ssh key in it. Does the installation create one by default? If yes, what is the usage of it?

Thx!
 
Hello!

I just installed a proxmox v6. When I wanted to add my ssh key in authorized_keys file, I see that there is already one ssh key in it. Does the installation create one by default? If yes, what is the usage of it?

Thx!
Hi,
in a cluster of several nodes PVE relies on ssh to perform certain tasks, a working communication in-between the nodes is therefore essential.
This is why we share /etc/pve/priv/known_hosts as well as the keys via the pmxcfs [0] between the hosts.
The /etc/ssh/ssh_known_hosts is setup to symlink to /etc/pve/priv/known_hosts.
For a standalone node this does not really matter, but is setup anyway.
You can check the fingerprint by running ssh-keyscan -t rsa <hostname> and compare it if not sure.

[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_pmxcfs
 
Hi Chris,

Thx for your answer. I only have one node. I used your command but the result is different. But I f I compare the content of the id_rsa.pub file and the one in the authorized_keys, they are identical.

Thx!
Ah yes, sorry ;) got carried away by the known_host while you were explicitly asking about the authorized_keys. Glad you already figured it out by yourself.
 
  • Like
Reactions: lixaotec