Skip to content

Commit

Permalink
refactor(ssh): generate only one keypair
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jun 7, 2024
1 parent ee5127b commit cb2bd6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup/ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit cb2bd6b

Please sign in to comment.