Add the new key to your GitHub/BitBucket account
- Open
.git/configfile to see your GIT configuration in your project folder - Make sure the project is using the SSH as
urlparameter. Ex.[email protected]:USER/PROJECT.git - Add before the host your alias name. Ex.
[email protected]:USER/PROJECT.git
- Open
~/.ssh/configfile to create/edit your custom SSH configuration - Add these lines
# GITHUB
Host YOURALIS.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/YOURKEYNAME
# BITBUCKET
Host YOURALIS.bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/YOURKEYNAME
Lelle - License