github ssh key setup
$ ssh-keygen -t ed25519 -C "your_email@example.com" # start the ssh-agent in the background $ eval "$(ssh-agent -s)" > Agent pid 59566 ssh-add ~/.ssh/id_ed25519 clip < ~/.ssh/id_ed25519.pub
Source: docs.github.com
add ssh key to github
$ ls -al ~/.ssh # Lists the files in your .ssh directory, if they exist
Source: help.github.com
add ssh keys to github
1. ssh-keygen -o -t rsa -C "your_email@example.com" 2. Press return for each option 3. cat ~/.ssh/id_rsa.pub 4. Copy the entire cat's output on "Settings - SSH and GPG keys - New SSH key" on GitHub
generate ssh key github
$ ssh-keygen -t ed25519-sk -C "your_email@example.com"
Source: docs.github.com
Create GitHub SSH key
ssh-keygen -t rsa -C "ex@email.com"
Create SSH Key For Github
# Generating an ssh-keygen # Change directory to the ssh directory cd ~/.ssh # Create SSH Key ssh-keygen -o -t rsa -C "email@email.com" # Add SSH Key (not the .pub file) to SSH Agent eval `ssh-agent -s` ssh-agent -s ssh-add ~/.ssh/filename # Create SSH Config file (~/.ssh/config) """ # Personal GitHub Host github.com HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/personal_rsa # Non-Personal GitHub Host nonpersonal.github.com HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/nonpersonal_rsa """ # ssh-add ssh-add -l # test ssh -T git@github.com ssh -T git@nonpersonal.github.com # Copy the contents of the ssh key public file (.pub file) to clipboard # (WSL2 Specific) cat filename.pub | clip.exe # Go to "https://github.com/settings/keys" # Click New SSH Key # Paste the contents of the public file to Key # Click Add SSH Key # Go to the repository of the project you want to clone # Select the SSH Link and copy it to the clipboard # Then clone the repo git clone git@github.com:SOME_ORGANIZATION/SOME_PROJECT.git