Last active
January 17, 2024 19:07
-
-
Save ar1ja/9eb7fe16b431443ba54a2171820c36d5 to your computer and use it in GitHub Desktop.
gitea / forgejo / etc verification script ( istg )
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 sh | |
set -eu | |
main() { | |
ssh-keygen -t ed25519 -a 100 | |
ssh-add ~/.ssh/id_ed25519 | |
echo | |
cat ~/.ssh/id_ed25519.pub | |
echo | |
printf 'paste in the above text into your keys settings and press enter' | |
read -r _ | |
printf 'now press verify and paste in your token : ' | |
read -r token | |
echo | |
printf '%s' "$token" | ssh-keygen -Y sign -n gitea -f ~/.ssh/id_ed25519 | |
echo | |
echo 'paste in the above text into the verification field' | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment