Last active
April 4, 2022 18:42
-
-
Save bradlipovsky/bcccc59be7b0e9d1b3c0f386d182f856 to your computer and use it in GitHub Desktop.
Getting started on 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
# First, check to see if you have a .ssh directory. | |
ls ~/.ssh | |
# If this doesn't return an error: continue to create a new SSH key. | |
# If this does return an error, make a .ssh directory: | |
mkdir ~/.ssh | |
# Create a new SSH key | |
ssh-keygen -t ed25519 -C "your_email@example.com" | |
# Default file location and name are fine. I prefer to not use a passcode, but that's up to you. | |
# To do both of those things, hit enter three times! | |
# Start the SSH agent | |
eval "$(ssh-agent -s)" | |
# Add the new key | |
ssh-add ~/.ssh/id_ed25519 | |
# Open the key | |
cat ~/.ssh/id_ed25519.pub | |
# Then select and copy the contents of the id_ed25519.pub file | |
# displayed in the terminal to your clipboard | |
# From here, you can go to GitHub.com, Settings, SSH and GPG Keys, then Add this as a new key. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
publicize