chore: log legacy ssh key regeneration

This commit is contained in:
copilot-swe-agent[bot]
2026-06-24 22:14:42 +00:00
committed by GitHub
parent db1a88ab2e
commit 181465c376
+1
View File
@@ -53,6 +53,7 @@ lib.mkIf userExists {
if [ ! -f "${keyPath}" ]; then
generate_factory_key
elif ! ssh-keygen -y -P "$PASSPHRASE" -f "${keyPath}" >/dev/null 2>&1; then
echo "Existing factory SSH key does not match current passphrase; backing it up and generating a replacement."
backup_suffix=$(date -u +%Y%m%d%H%M%S)
backup_path="${keyPath}.bak-$backup_suffix"
backup_index=0