yuki-kimoto / gitprep

Portable GitHub system into your own server
http://gitprep.yukikimoto.com/
914 stars 117 forks source link

Future Request: UI for adding ssh public keys #40

Closed tetsuh closed 10 years ago

tetsuh commented 10 years ago

It will be nice if GitPrep has GitHub like UI for adding SSH Public Keys.

GitPrep is pretty good support both http and ssh. but I need to edit ~gitprep/.ssh/authorized_keys manually if I want to add SSH Public Keys.

yuki-kimoto commented 10 years ago

Oh, but you can edit ~gitprep/.ssh/authorized_keys directly?

tetsuh commented 10 years ago

Yes, I just concatenate users's pub key to ~gitprep/.ssh/authorized_keys. after that user can access repository via ssh key authentication instead of password.

cons. is access control. once added user's pub key, user can access all repository on GitPrep. I think it's okay at this time since GitPrep is for small workgroup not enterprise.

In future, we can go fine grain access control by using OpenSSH 6.2's AuthorizedKeysCommand. ( http://togakushi.bitbucket.org/build/html/openssh-6.2.html )

Thanks.

yuki-kimoto commented 10 years ago

I haven't known open ssh this feature. I am interested in this feature. I want to support this feature.

yuki-kimoto commented 10 years ago

@tetsuh

I don't yet understand git hub system via ssh access.

If you know it, please tell me it.

Why can gitHub accesss repository via ssh in the following URL?

git@github.com:yuki-kimoto/gitprep.git
tetsuh commented 10 years ago

I don't know what GitHub does. But we can refer GitLab or Gitolite.

I just looked following information about ssh access and authorized_keys handling,

here is japanese blog about gitolite ssh access and user recognition.

Those all are interested and looks works well practically. but I feel those pretty complicate and not so smart :)

Thans.

yuki-kimoto commented 10 years ago

Oh, Great information! I haven't known ssh advanced features. I want to implement this feature.

yuki-kimoto commented 10 years ago

Thanks. I read above information. This is not so easy. I should read gitolite implementation.

yuki-kimoto commented 10 years ago

Please tell me the meaning of the folloing value if you know this . What value is this in SSH keys page of GitHub?

7d:d7:ec:86:f6:96:cf:8f:63:07:79:01:f4:cb:f7:78
reneeb commented 10 years ago

It's the fingerprint of the key http://en.wikipedia.org/wiki/Public_key_fingerprint

yuki-kimoto commented 10 years ago

thank you!

yuki-kimoto commented 10 years ago

I add public key authentication feature to master. Please test.

tetsuh commented 10 years ago

Hi,

I have used ssh key authentication feature in these four days. It works perfectly on my environment. very good !

I like GitPrep with ssh connection. It's rock solid and better response than http.

Thank you.