/github-keygen

SSH configuration for Github / SPCM

Primary LanguagePerlGNU General Public License v3.0GPL-3.0

github-keygen

SSH configuration for Github / SPCM

=head2 github-keygen - GitHub SSH Configuration Bootstrap

=head3 SYNOPSIS

Unix/Linux/MacOS X:

git clone https://github.com/cdsalmons/github-keygen.git
cd github-keygen
./github-keygen <my-github-username>
cd ..
rm -Rf github-keygen

=head3 EXAMPLE

cd /root
mkdir spcm
cd spcm
git clone https://github.com/cdsalmons/github-keygen.git
cd github-keygen
./github-keygen cdsalmons
cd ..
rm -Rf github-keygen

=item *

It creates unique host aliases for github.com/gist.github.com that you'll be able to use in Git URLs (C) to connect to a particular account. This gives the flexibility to use B (and therefore a different SSH key for each).

<account>.github.com:<repo-owner>/<repo>.git  (for each account)
github.com:<repo-owner>/<repo>.git            (for the default account)

in addition to:

git@github.com:<repo-owner>/<repo>.git

=head3 UPGRADE

To upgrade your config to the latest one, update C and relaunch it. It will update your F<~/.ssh/config> and show you the diff of what it changed:

cd github-keygen
git rebase
./github-keygen

=head3 MORE INFO github-keygen-README.md