SSH public key validation error (500)

hvisage

Renowned Member
May 21, 2013
278
26
93
I'm bumping my head against this problem where I need to add several keys for containers at creation time, but keep getting the above error on PVE 7.4 when doing it via the WebUI/GUI interface.

What is the expression/criteria to match or make it work?

Is it acctually supported? as it seems to be pulling the file into the ssk key dialog field where new lines seems to be "lost"?
 
Yes it works. The gui presentation is a bit limited but if the source file is in a good format (key per line) with appropriate ssh key format, then it works.
Try a key at a time, then two. See if you can reduce the problem to problematic line. Generate a few new test keys. At last - post public keys in the forum, perhaps someone will spot an issue. Other than that, if you are sure that the source file is good, the keys are correct and you dont want to post your keys - inform the developers directly. Its software, so bugs are possible.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
hmmm... seems to also botch the authorized_keys when I do find a "valid" multiple keys pub file:
Code:
==> subvol-999996-disk-0/root/.ssh/authorized_keys <==
# --- BEGIN PVE ---
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrogu2+b8HXlhr+M7LuCRdPKwpXSYx0ZJeMDrB7E50M ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEHbaC0U7VHZ/HadGxTATNOE1c6oOjjYaq87uxCORiD/ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBQVwL6zDpw5a+oBDZY17HV5CzwuVzbK7nVMnw0Ddcqkkv77Y/JyWy1FNG51HUResCAhl4Lymq8APD3tROGHDPeUnutRqnkDYAzjUwkKQgHdVZRv0sp/5kkuMU030KG7pENT1gshjws0b1rB0cDPm+tfpP52p8atUExVyT34VhSeOaecPTx7rtPPiHIZ3cYqI7IQDlYFsYRaw2Zjo0aVdetkqkD4ZSsr8obeu3MZAApoqdjCs+9hXeSuTvs085fyuDj95QHtrDL1vp79dQANwXUtvDfVzBVptchH2cnUcYsJFUQW7h1qQq45ZGQ0xn1IzuqT5DlL6EGlJECeIvcjEaiYqnVACPjCNVP3wDtMcQ4KCZBw2gyVOyG3D0/q5880stW9Jf4ZOHWwXPPSjBQaz2J/rfEB6TrK15DadfeKTN6KCCoz51DTS3ocDaADiPg63kUAhO5C8vyIcPWPjlztqjM5ZRJBx+02b3Bu+/L62qJiizH2lpsutP4s1SPXIjhL5tFYpX1EiluIJEi4ef9r9VUxQT6mJMF52WG+3/tisIgUF/OK8GfcvGgMabX10KHdPUFm0c4q/PhO70RUEdqVKs2N4b+zHDBiRrZ8R/yahBhMxCEZChOJ/1AxID3hhf49MPKZ0hACRhm9/AsKz/exLKqL8JmCTYZjrbBkfokkveWQ==
# --- END PVE ---


==> subvol-999997-disk-0/root/.ssh/authorized_keys <==
# --- BEGIN PVE ---
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrogu2+b8HXlhr+M7LuCRdPKwpXSYx0ZJeMDrB7E50M ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEHbaC0U7VHZ/HadGxTATNOE1c6oOjjYaq87uxCORiD/ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBQVwL6zDpw5a+oBDZY17HV5CzwuVzbK7nVMnw0Ddcqkkv77Y/JyWy1FNG51HUResCAhl4Lymq8APD3tROGHDPeUnutRqnkDYAzjUwkKQgHdVZRv0sp/5kkuMU030KG7pENT1gshjws0b1rB0cDPm+tfpP52p8atUExVyT34VhSeOaecPTx7rtPPiHIZ3cYqI7IQDlYFsYRaw2Zjo0aVdetkqkD4ZSsr8obeu3MZAApoqdjCs+9hXeSuTvs085fyuDj95QHtrDL1vp79dQANwXUtvDfVzBVptchH2cnUcYsJFUQW7h1qQq45ZGQ0xn1IzuqT5DlL6EGlJECeIvcjEaiYqnVACPjCNVP3wDtMcQ4KCZBw2gyVOyG3D0/q5880stW9Jf4ZOHWwXPPSjBQaz2J/rfEB6TrK15DadfeKTN6KCCoz51DTS3ocDaADiPg63kUAhO5C8vyIcPWPjlztqjM5ZRJBx+02b3Bu+/L62qJiizH2lpsutP4s1SPXIjhL5tFYpX1EiluIJEi4ef9r9VUxQT6mJMF52WG+3/tis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cQ4KCZBw2gyVOyG3D0/q5880stW9Jf4ZOHWwXPPSjBQaz2J/rfEB6TrK15DadfeKTN6KCCoz51DTS3ocDaADiPg63kUAhO5C8vyIcPWPjlztqjM5ZRJBx+02b3Bu+/L62qJiizH2lpsutP4s1SPXIjhL5tFYpX1EiluIJEi4ef9r9VUxQT6mJMF52WG+3/tisIgUF/OK8GfcvGgMabX10KHdPUFm0c4q/PhO70RUEdqVKs2N4b+zHDBiRrZ8R/yahBhMxCEZChOJ/1AxID3hhf49MPKZ0hACRhm9/AsKz/exLKqL8JmCTYZjrbBkfokkveWQ==
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfCsnIi3YdbjJ7vFOzRoh69lr3T9LnnyrzHNAcxYV3C31eXIkUjjiP/iuV69IvtN4S50fyGf3x8MbuCEqVbs6R6Oxp5ZLkhBwiud76SYKn4CFIo75jfT7/4WwE7CNy7+oZ1+ODSm4R8VbSy8ZrDM2doLHtanydQzHYBAsDI+0DNdzMnvnxfXaD5s8nffpYY5jKYXOl9BwbFWFWFf0bYDKLXmy8z1/RnxfM16TthniFZY74tYM/CWIEfZmpsl9T9r9vWV/keZa0n262IhII2OXNBUaIQMuhP+tnzIwXsiKWYvmY+6rHNImuxnUWQmOYX46VosaWPduMiuKvOb4UgUTp
 

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!