remove(macos): ssh key script
SSH keys are now created via 1password instead
This commit is contained in:
parent
3c31863088
commit
318a6d9492
1 changed files with 0 additions and 20 deletions
20
macos/ssh.sh
20
macos/ssh.sh
|
@ -1,20 +0,0 @@
|
|||
#!/bin/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
|
||||
|
||||
# Adding your SSH key to the ssh-agent
|
||||
# https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent
|
||||
eval "$(ssh-agent -s)"
|
||||
|
||||
touch ~/.ssh/config
|
||||
echo "Host *\n AddKeysToAgent yes\n UseKeychain yes\n IdentityFile ~/.ssh/id_ed25519" | tee ~/.ssh/config
|
||||
|
||||
ssh-add -K ~/.ssh/id_ed25519
|
||||
|
||||
# Adding your SSH key to your GitHub account
|
||||
# https://docs.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account
|
||||
echo "run 'pbcopy < ~/.ssh/id_ed25519.pub' and paste that into GitHub"
|
Loading…
Add table
Reference in a new issue