Created
July 22, 2023 03:38
-
-
Save djonko/f49d61e2848dfed0bf9d7b21bebdae76 to your computer and use it in GitHub Desktop.
generate ssh key on linux for github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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