Skip to content

Instantly share code, notes, and snippets.

@duartedb
duartedb / generate_ssh_key.sh
Last active February 9, 2024 15:41
Generate new SSH keys
#!/bin/sh
# Copied and adapted from https://github.com/driesvints/dotfiles/blob/main/ssh.sh
echo "Generating a new SSH key for GitHub..."
# Generating a new SSH key
# https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
ssh-keygen -t ed25519 -C $1 -f ~/.ssh/id_ed25519

Keybase proof

I hereby claim:

  • I am duartedb on github.
  • I am duartedb (https://keybase.io/duartedb) on keybase.
  • I have a public key ASAMb86rpt7B1r84lcxzymOvcUmRuuRQDDFg2ftNT_wN6Qo

To claim this, I am signing this object: