Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Last active February 25, 2019 07:46
Show Gist options
  • Save ChristopherA/6075798aeef4f9bbb4afd26c93f2506b to your computer and use it in GitHub Desktop.
Save ChristopherA/6075798aeef4f9bbb4afd26c93f2506b to your computer and use it in GitHub Desktop.
Install Keys on New macOS Mojave
# THIS IS IN A WORK IN PROGRESS, DO NOT USE!
# curl -L https://gist.githubusercontent.com/ChristopherA/6075798aeef4f9bbb4afd26c93f2506b/raw/installkeys.sh | bash
sudo chown -R christophera ~christophera/.gnupg/
sudo chown -R christophera ~christophera/.gnupg/*
sudo chown -R christophera ~christophera/.ssh/*
sudo chown -R christophera ~christophera/.ssh/*
chmod 755 ~
chmod 600 ~/.ssh/*
chmod 600 ~/.ssh/id_*
chmod 644 ~/.ssh/*.pub
chmod 644 ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg
gpgconf --kill gpg-agent
export GPG_TTY=$(tty)
#
#mkdir -p ~/.config/Yubico/
#pamu2fcfg > ~/.config/Yubico/u2f_keys
#cat ~/.config/Yubico/u2f_keys # should output <your username>:<really long hash>
# brew install pam-u2f yubico-pam ykpers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment