Wednesday 27 March 2013

github and multiple accounts, git keeps asking for password

Taken: http://net.tutsplus.com/tutorials/tools-and-tips/how-to-work-with-github-and-multiple-accounts/
  1. ssh-keygen -t rsa -C "me@mycompany.com" -f ~/.ssh/id_rsa_mycompany
  2. ssh-add ~/.ssh/id_rsa_mycompany
  3. Add below to ~/.ssh/config
  4. git clone git@github-mycompany:mycompany/myrepo.git
Host github-mycompany
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa_mycompany

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...