Skip to content

rebienkrdns/how-to-configure-git-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Single Git Accounts Config

ssh-keygen -C "user@example.com" -f id_rsa -P ""

Multiple Git Accounts Config

Create Azure Devops SSH Key

ssh-keygen -C "userAzure@example.com" -f azure -P ""

Test Azure Devops SSH Key

ssh -T git@ssh.dev.azure.com

Create Github SSH Key

ssh-keygen -C "userGithub@example.com" -f github -P ""

Test Github SSH Key

ssh -T git@github.com

Insert this content into the ~/.ssh/config file

# azure devops
Host ssh.dev.azure.com
IdentityFile ~/.ssh/azure
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

# github
Host github.com
User git
Hostname github.com
IdentityFile ~/.ssh/github
PreferredAuthentications publickey

Releases

No releases published

Packages

No packages published