Skip to content

Instantly share code, notes, and snippets.

@lemonteaa
Created July 4, 2022 19:47
Show Gist options
  • Save lemonteaa/a9a04e9b30020e57188f20ef868e9424 to your computer and use it in GitHub Desktop.
Save lemonteaa/a9a04e9b30020e57188f20ef868e9424 to your computer and use it in GitHub Desktop.
Setting up git credential
mkdir ~/.ssh/
cp ssh_conf ~/.ssh/config
chmod 600 ~/.ssh/config
touch ~/.ssh/id_ed25519.pub
touch ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
Host github-lab
HostName github.com
AddKeysToAgent yes
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment