Since I have multiple git accounts (work_account
and personal_account
) I am trying to change to my personal account by running:
git config --global user.name 'personal_account'
git config --global user.email '[email protected]'
And:
ssh-add ~/.ssh/personal_account_key
But after all of that, the command ssh -T [email protected]
keeps displaying that I am authenticated with my work account:
# ssh -T [email protected]
Hi work_account! You've successfully authenticated, but GitHub does not provide shell access.
How can I change it?