Search code examples
gitsshgithubopenssh

How is the Github handling so many public keys


I'm wondering, how Github is able to handle so many public keys, which are used for authenticating over ssh.

One user owns aprox 3 certificates and how many users are on Github - millions? Easy multiplication gives us millions of certificates. It isn't in one .ssh/authorized_keys file for user git I guess, right?

They have own ssh server implemented, or exists any mod for OpenSSH solving this kind of problem?

Thanks.


Solution

  • They have patched sshd to lookup key in the MySQL database:

    https://github.com/blog/530-how-we-made-github-fast