From bb86847152dd8173966d3239bee2336e8409efdf Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 6 Oct 2025 17:04:03 -0400 Subject: [PATCH] migrate: detect id_* for key file --- usr/local/share/bastille/migrate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/migrate.sh b/usr/local/share/bastille/migrate.sh index 56c93477..b4ce19ef 100644 --- a/usr/local/share/bastille/migrate.sh +++ b/usr/local/share/bastille/migrate.sh @@ -334,7 +334,7 @@ if [ "${OPT_PASSWORD}" -eq 1 ]; then _opt_ssh_key= else _migrate_user_home="$(getent passwd ${USER} | cut -d: -f6)" - _migrate_user_ssh_key="${_migrate_user_home}/.ssh/id_rsa" + _migrate_user_ssh_key="find ${_migrate_user_home}/.ssh -maxdepth 1 -type f ! -name '*.pub' | grep -Eos 'id_.*'" _opt_ssh_key="-i ${_migrate_user_ssh_key}" # Exit if no keys found