lfs-test-server icon indicating copy to clipboard operation
lfs-test-server copied to clipboard

Using SSH keys

Open swolfish opened this issue 8 years ago • 5 comments

Is it possible to use ssh keys instead of user and pass? So ssh keys of users permitted to do with project's git repository are also on the LFS server and there's no need for double credential in the project.

swolfish avatar Oct 08 '15 06:10 swolfish

Would also like to see this, though unlikely since it uses http protocol instead, but perhaps a midway communication only for the auth.

Gfurst avatar Jan 07 '16 01:01 Gfurst

Me either.

maciej-lech avatar Jan 08 '16 20:01 maciej-lech

I've asked on the github-lfs github/git-lfs#923 It seems that github works this way, when authenticated via ssh, it passes a certification to the https to bypass, if using regular https protocol you only need to authenticate once too.

In both cases I think the server as to be integrated somehow(same https server serving both git and the lfs host). When this is setup you don't even need to set a custom address for the lfs host (per remote), the default path it looks is .../repo.git/info/lfs

Gfurst avatar Jan 10 '16 02:01 Gfurst

Just a silly question: where do you put the private key and certificate. I am learning how to use the test server with https. In Apache, you put in the configu file:

   SSLCertificateFile /path/to/certs/hellfish.test.crt
   SSLCertificateKeyFile /path/to/certs/hellfish.test.key

kemin711 avatar Jan 09 '24 23:01 kemin711

@kemin711 -- note that SSL/TLS for HTTPS is different from SSH, which is what this issue is about. In general, we prefer a new issue to a comment on an unrelated issue. To answer the question, though, I believe you can use any location you like so long as you pass the paths to the key and certificate files in the appropriate environment variables, as documented in the README.

chrisd8088 avatar Jan 10 '24 00:01 chrisd8088