Skip to content

Instantly share code, notes, and snippets.

@skalibog
Last active July 7, 2021 10:11
Show Gist options
  • Save skalibog/75e131188126a9e5f652013f48006c0d to your computer and use it in GitHub Desktop.
Save skalibog/75e131188126a9e5f652013f48006c0d to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "=========================================="
echo "Set ssh id_rsa to ssh key for gotoinc git acc"
echo "=========================================="
git config --global --replace-all user.email "root@gotoinc.co"
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 git@github.com
echo "=========================================="
echo "Test bitbucket connection"
ssh -T skalibog@bitbucket.org
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