Remove the previous owner's SSH keys and apply the new owner's keys (profile + library) when ownership is reassigned. If the new owner has no keys, the old keys are simply removed. QEMU VMs: updates cloud-init sshkeys via Proxmox API. LXC containers: writes /root/.ssh/authorized_keys via exec. The swap is best-effort — failures are logged but do not block the ownership change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
166 KiB
166 KiB