简体   繁体   中英

Is it possible to give public access to a private GIT server?

I have successfully setup a private GIT server using SSH keys and Gitolite, and i was able to clone, pull, push to that server with no issues, but now in order to give access to some repository on this server to any other computer, i need to add the public key of that computer to ssh authorized_keys of this server. I want to know whether I can give public read and write access to this repository without actually adding the ssh public keys ?

I have tried to run git daemon, but i was not able to run it due to some port problems, but i want to know, if even with git daemon is it possible to give both read and write public access without adding ssh keys ?

If you're not interested in allowing others to push to your repository, you can do this by just configuring HTTP transfers . Those can be done over any port you want really, but ports 80 and 443 (the latter for HTTPS) are the ones that are most likely to be open.

Failing that, your easiest approach is almost certainly to use a service elsewhere to host, with you regularly synchronising your local repository with that remote one. The details of what is best there will depend on all sorts of factors (eg, how public do you really want it to be?)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM