Skip to content

Instantly share code, notes, and snippets.

@djonko
Created July 22, 2023 03:38
Show Gist options
  • Save djonko/f49d61e2848dfed0bf9d7b21bebdae76 to your computer and use it in GitHub Desktop.
Save djonko/f49d61e2848dfed0bf9d7b21bebdae76 to your computer and use it in GitHub Desktop.
generate ssh key on linux for github
#!/usr/bin/env bash
EMAIL_ENV="[email protected]"
KEY_PATH_ENV="$HOME/.ssh/id_github_ed25519"
ssh-keygen -t ed25519 -C $EMAIL_ENV -f "$KEY_PATH_ENV"
eval "$(ssh-agent -s)"
ssh-add "$KEY_PATH_ENV"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment