News for hackers. Stuff that matters.
Re:The Inner Guts of Bitbucket [video] by erikvanzijst on Wednesday March 11, 2015 @03:07AM (#9182941)
> would be super curious to see and hear more about their patch to SSHD

It's based on this patch: https://github.com/wuputahllc/openssh-for-git

Re:The Inner Guts of Bitbucket [video] by noselasd on Wednesday March 11, 2015 @12:19PM (#9184829)
Note that since openssh 6.2 you can plug in to sshd for the keys without patching it with the AuthorizedKeysCommand , and there's several utilities around for pulling the authorized keys from LDAP or similar services.
Re:The Inner Guts of Bitbucket [video] by belak on Wednesday March 11, 2015 @01:33PM (#9185314)
Unfortunately, this doesn't scale, as with the AuthorizedKeysCommand, you are required to output all the keys for that user on stdout. Outputing all of the "git" user's authorized keys lines would be an extremely expensive operation.

From the sshd_config man page: "Specifies a program to be used for lookup of the user's public keys. The program will be invoked with its first argument the name of the user being authorized, and should produce on standard output AuthorizedKeys lines"

Re:The Inner Guts of Bitbucket [video] by nodesocket on Wednesday March 11, 2015 @03:24AM (#9182974)
Thanks for the link, but the fact it is 6 years old, and comes with warnings such as we’re not expert C hackers makes me very nervous.
Re:The Inner Guts of Bitbucket [video] by erikvanzijst on Wednesday March 11, 2015 @11:10AM (#9184447)
That's just the original it is based off. There are a few more recently updated forks floating around also. We maintain ours in house.

Either way, if you want to tinker with opensshd I can recommend it as a starting point. It's very small, readable and easily tweaked.