how to set up ssh access to a company github repo

  • create a personal github account for the company

  • create a ssh key

  • add ssh key to the github account via web settings

  • create .ssh/config stanza

            User githubusername
            IdentityFile ~/.ssh/
  • set up git:

            git config --global "dave capella"
            git config --global
            git config --global core.editor vim
  • create a directory for the company’s repo

            mkdir -p company/repo
            cd company/repo
  • clone the repo

            git clone