id_ed25519.pub support for authorized_keys update

This commit is contained in:
hayden-t
2025-12-27 09:05:17 +11:00
committed by GitHub
parent bc44562637
commit eec14b6c1f

View File

@@ -26,6 +26,9 @@ if ($config{'sync_create'} && &has_command($config{'keygen_path'}) &&
if (-r "$uinfo->{'home'}/.ssh/identity.pub") {
&copy_source_dest("$uinfo->{'home'}/.ssh/identity.pub", $akeys);
}
elsif (-r "$uinfo->{'home'}/.ssh/id_ed25519.pub") {
&copy_source_dest("$uinfo->{'home'}/.ssh/id_ed25519.pub", $akeys);
}
elsif (-r "$uinfo->{'home'}/.ssh/id_rsa.pub") {
&copy_source_dest("$uinfo->{'home'}/.ssh/id_rsa.pub", $akeys);
}