...
Table of Contents | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Excerpt | ||
---|---|---|
| ||
Knowledge base concerning github actionsHow to manage credentials for interactions with github.com. |
...
Dual Work-Personal SSH Accounts
...
Create an ssh key and save it to a named file
Code Block |
---|
# This creates ~/.ssh/work_rsa and ~/.ssh/work_rsa.pub $ ssh-keygen -t rsa -C "bob-work@gmail.com" > Enter file in which to save the key (/home/bob/.ssh/id_rsa): /home/bob/work_rsa.pub-f "work" |
Upload the ssh key to your github work account
Create a new github.com configuration in ~/.ssh/config
Code Block |
---|
Host work Hostname github.com User git IdentityFile ~/.ssh/work |
...