Created
July 4, 2022 19:47
-
-
Save lemonteaa/a9a04e9b30020e57188f20ef868e9424 to your computer and use it in GitHub Desktop.
Setting up git credential
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
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 |
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
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