Last active
December 24, 2021 01:21
-
-
Save victoriadrake/19f64bc7bb1e97f5a560ac77907d0131 to your computer and use it in GitHub Desktop.
Generate ed25519 SSH Key
This file contains hidden or 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
#!/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