Skip to content

Instantly share code, notes, and snippets.

@victoriadrake
Last active December 24, 2021 01:21
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 victoriadrake/19f64bc7bb1e97f5a560ac77907d0131 to your computer and use it in GitHub Desktop.
Save victoriadrake/19f64bc7bb1e97f5a560ac77907d0131 to your computer and use it in GitHub Desktop.
Generate ed25519 SSH Key
#!/bin/bash
# Generate the key
ssh-keygen -t ed25519
# Add it to the ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
# Set appropriate permissions
chmod 600 ~/.ssh/id_ed25519
# Show the public key so you can copy it to GitHub
cat ~/.ssh/id_ed25519.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment