Setup github with SSH keys in Linux/FreeBSD
Create the keys I prefer ed25519
ssh-keygen -f ~/.ssh/id_ed22519_github -t ed25519 -C "[email protected]"
Paste public ~/.ssh/id_ed22519_github.pub key string to github https://github.com/settings/keys
Test the connection you should see "Hi username! You've successfully authenticated"
ssh -i ~/.ssh/id_ed22519_github -T [email protected]
add the following to ~/.ssh/config
Host github
HostName github.com
User git
IdentityFile /home/user/.ssh/id_ed22519_github
IdentitiesOnly yes
cd to project dir
git remote add github git@github:GithubUsername/projectName.git