Skip to content

Instantly share code, notes, and snippets.

@TruncatedDinoSour
Last active January 17, 2024 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TruncatedDinoSour/9eb7fe16b431443ba54a2171820c36d5 to your computer and use it in GitHub Desktop.
Save TruncatedDinoSour/9eb7fe16b431443ba54a2171820c36d5 to your computer and use it in GitHub Desktop.
gitea / forgejo / etc verification script ( istg )
#!/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