How to make repository public


#1

I know how to make repositories visible to everyone, but how do I make public repositories clonable by users that aren’t registered on my server?


#2

If the repo is public anyone should be able to clone it via HTTP/HTTPS without any additional setup; assuming you don’t have another authentication system in front of gitea.

If you mean fork the repo in your instance, they can’t without being registered.


#3

The repository is public, but peers can only git clone when able to enter a username + a corresponding password.


#4

Assuming they’re cloning using HTTP/S please be sure you’ve configured your site to provide the correct base url and port.


#5

I assume it wouldn’t work at all, if they were incorrect.


#6

It’s possible. For instance one could be using SSH and not have provided an ssh key to gitea. Or, they could have an ssh key set but the port mapping is wrong (i.e. 22 vs 2222). If the issue is the base url you could have a hosts file setting they don’t. It’s really hard to say without more detail.


#7

Issue is still there, even after updating to the newest version.


#8

I’m not sure if you understood my last message (or if it made any sense) so I’m going to go out on a limb here and assume you need to use HTTP/S instead of git when cloning. It could be your using a non-standard port for git+ssh, which by default on most systems is 22 (the common port used for ssh).


#9

I still don’t understand your point. You basically are saying that HTTP/S is the same as GIT and SSH. When I git clone ssh:// then obviously I don’t need a password, because I have my pub.key shared. I have to use a working username and its corresponding password to git clone from plain HTTPS which shouldn’t be an issue. It also can’t be related to any SSH port configuration because this problem existed weeks before I even touched the SSH configuration for Gitea.