Setting up GitHub on a new machine
The goal here is to set up a new SSH key and a GPG signing key for a new MacOS machine, using the GitHub gh cli.
Install the CLI using Homebrew:
shell
brew install ghThen login:
shell
gh auth loginAuthorize the CLI to manage signing keys:
shell
gh auth refresh -h github.com -s admin:ssh_signing_keyCreate a new RSA key:
shell
ssh-keygen -t rsa -b 4096Add the new public key:
shell
gh ssh-key add ~/.ssh/id_rsa.pub