Skip to content

Instantly share code, notes, and snippets.

@KarmaBlackshaw
Last active April 22, 2024 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KarmaBlackshaw/5a948e0a74962c16916fbd2030c1aaa0 to your computer and use it in GitHub Desktop.
Save KarmaBlackshaw/5a948e0a74962c16916fbd2030c1aaa0 to your computer and use it in GitHub Desktop.
Generate SSH Key for Github

Generate SSH Key in your server

ssh-keygen -t ed25519 -C "your_email@example.com" -f C:\Users\erniejeash\.ssh\id_ed25519_github

Copy the key in the .pub file and paste it in your gh access tokens

$ cat ~/.ssh/id_ed25519.pub
# Then select and copy the contents of the id_ed25519.pub file
# displayed in the terminal to your clipboard

If your ssh is not being read and fails to perform any git operations due to permissions

# Check if your key is listed
ssh-add -l

# If not, add your key
ssh-add ~/.ssh/id_rsa
@KarmaBlackshaw
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment