Created
March 28, 2022 13:33
-
-
Save piotrkochan/b6ad417be19fe3f39c5951bd8691f84f to your computer and use it in GitHub Desktop.
Generate SSH key with yubikey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
ssh-copy-id -i ~/.ssh/id_ed25519_sk_yb1 $1 | |
ssh-copy-id -i ~/.ssh/id_ed25519_sk_yb2 $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t ed25519-sk -i ~/.ssh/id_ed25519_sk_yb1 -C "$(hostname)-$(date +'%d-%m-%Y')-yubikey1" | |
ssh-keygen -t ed25519-sk -i ~/.ssh/id_ed25519_sk_yb2 -C "$(hostname)-$(date +'%d-%m-%Y')-yubikey2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment