/
Github Credentials

Github Credentials




Dual Work-Personal SSH Accounts

Nothing changes for your personal account (assuming it already exists)

For your work account:

  1. Create an ssh key and save it to a named file

# This creates ~/.ssh/work_rsa and ~/.ssh/work_rsa.pub $ ssh-keygen -t rsa -C "bob-work@gmail.com" -f "work"
  1. Upload the ssh key to your github work account

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

Host work Hostname github.com User git IdentityFile ~/.ssh/work
  1. Test the ssh key

$ ssh -T git@github.com Hi bob! You've successfully authenticated, but GitHub does not provide shell access. $ ssh -T git@work Hi bob-work! You've successfully authenticated, but GitHub does not provide shell access.
  1. Clone

Related content

Push Permissions
Push Permissions
More like this
Github Actions
Github Actions
More like this
Powerline Shell
Powerline Shell
More like this
Portfolio
More like this
FIOS Router
FIOS Router
More like this
Ament/Colcon
Ament/Colcon
More like this