From cb2bd6bdc9b222f669d576bfca18677caa6f3430 Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Fri, 7 Jun 2024 18:33:36 +0700 Subject: [PATCH] refactor(ssh): generate only one keypair --- setup/ssh.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/setup/ssh.sh b/setup/ssh.sh index fc70789..692fd99 100644 --- a/setup/ssh.sh +++ b/setup/ssh.sh @@ -23,11 +23,7 @@ try_generate_keypairs() { ssh-keygen -b 2048 -t rsa -f "$1" -q -N "" } else - if _has_indicate sk2; then - try_generate_keypairs__suffix="sk2" - else - try_generate_keypairs__suffix="sk" - fi + try_generate_keypairs__suffix="sk" try_generate_keypairs__user="$(whoami)" try_generate_keypairs__generate() { ssh-keygen -t ed25519-sk -f "$1" -O resident -O application="ssh://$2" -O user="$try_generate_keypairs__user" -O verify-required -N ""