Use the SSH public keys you've added to GitHub to log in to your machines!
Currently, ghsshauth has been tested on Debian and FreeBSD, but should basically support all UNIX-like systems. Feel free to send patches.
$ git clone firstname.lastname@example.org:benburwell/ghsshauth.git $ cd ghsshauth $ sudo make install
/etc/ssh/sshd_config, find the
AuthorizedKeysCommand line, and change
AuthorizedKeysCommand /usr/local/sbin/ghsshauth %h AuthorizedKeysCommandUser root
%h represents the home directory of the user being authenticated).
In your home directory, create the file
.ssh/authorized_github_users and add
your GitHub username (and any other username you want to have access) to the
file, one per line. You can begin lines with the
# character to have them be
IMPORTANT: You'll need to make sure that the
read access to the entire path up to your
authorized_github_users file. The
easy way to do this is to make set
AuthorizedKeysCommandUser root. If you'd
AuthorizedKeysCommandUser nobody, then you'll need to make sure
nobody user has read access to
means your home directory needs to be
chmod 755 as does your
If you go this route, be sure that any secret keys in your
chmod 600, else secret keys they will no longer be!