- ssh-keygen -t rsa -C "me@mycompany.com" -f ~/.ssh/id_rsa_mycompany
- ssh-add ~/.ssh/id_rsa_mycompany
- Add below to ~/.ssh/config
- 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.