Last active
July 7, 2021 10:11
-
-
Save skalibog/75e131188126a9e5f652013f48006c0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
echo "==========================================" | |
echo "Set ssh id_rsa to ssh key for gotoinc git acc" | |
echo "==========================================" | |
git config --global --replace-all user.email "[email protected]" | |
git config --global --replace-all user.name "Anton Tkachov" | |
echo "------------------------------------------" | |
echo "User creds" | |
git config --global user.email | |
git config --global user.name | |
echo "------------------------------------------" | |
killall ssh-agent | |
ssh-add ~/scripts/keys/id_rsa_anton | |
echo "==========================================" | |
echo "Test github user" | |
ssh -T [email protected] | |
echo "==========================================" | |
echo "Test bitbucket connection" | |
ssh -T [email protected] | |
echo "==========================================" | |
echo "Set ssh id_rsa successfully" | |
echo "==========================================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment