Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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"
  1. Upload the ssh key to your github work account

  2. Create a new github.com configuration in ~/.ssh/config

Code Block
Host work
    Hostname github.com
    User git
    IdentityFile ~/.ssh/work

...