Skip to content

Instantly share code, notes, and snippets.

View redds-be's full-sized avatar
🌊
Swimming around the Falklands (Malvinas)

redd redds-be

🌊
Swimming around the Falklands (Malvinas)
  • Global Penguin Society
  • Carcass Island, Falklands
  • 21:25 (UTC -03:00)
View GitHub Profile
@redds-be
redds-be / 01-gengpg.sh
Last active February 17, 2024 10:12 — forked from grenade/01-generate-ed25519-ssh-key.sh
Generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/usr/bin/env bash
# Adapted from: https://gist.github.com/grenade/6318301
read -r -p "Do you want to configure the git global config to use your new gpg key? [y/N] " gitChoice
read -r -p "Are you transitioning to a new key? (i.e.: you have an old key and you want the new key to replace it.) [y/N] " transition
old_key_name="firstName lastName (comment) <email>"
new_key_name="firstNaam lastNaam (comment) <email>"