Append their public key to their authorized_keys file. Ask them to generate a public key for you with ssh-keygen and iwihost.net e mail it to you. The following steps assume you’re logged in as root.

A couple of months ago, when trying out various things, I decided to run Gitea regionally to see how easy it might be to implement on my server. Operating a private Git server is something that has been on my thoughts for fairly a long time. The typical setup based mostly on the created git person from above is that the common public SSH key of every consumer is added to the ~/.ssh/authorized_keys file of the git person. Utilizing your email is nice apply so that somebody looking at your public key can contact you in case they’ve questions.
Edit Git configuration information for global settings similar to /etc/gitconfig and /etc/gitattributes. In Distinction To particular person developers’ local repositories which are non-public and isolated, a Git server acts as a shared hub where developers can push their modifications and pull adjustments from different users. It allows multiple customers to collaborate on projects by providing a common location for storing code, tracking adjustments, and managing variations. To make your Git server obtainable to the Internet, you want to take a few more steps. After that they can obtain all recordsdata and push new files to Gitea. Our use case is an Unreal Engine project that must be done in a tight community setup with no need for outdoor entry.
2 Confirm Repository Setup#
- As of 2026, running Gitea on a Raspberry Pi or a 1 GB VPS is not only possible—it’s regular.
- For example, I have scripts to initiate repositories, add SSH keys and different useful commands, you’ll be able to see all of them here.
- With this method, you’ll have the ability to quickly get a read/write Git server up and operating for a handful of builders.
If you have a server to which all of your developers already have SSH entry, it’s typically best to set up your first repository there, as a result of you have to do virtually no work (as we covered within the final section). If you want some repositories to be read-only for certain customers and read/write for others, access and permissions could be a bit harder to rearrange. Nevertheless, remember that to collaborate with a couple of folks on a private project, all you want is an SSH server and a naked repository. You see how straightforward it’s to take a Git repository, create a naked version, and place it on a server to which you and your collaborators have SSH access. Observe that by operating this command, you will not destroy any commits, refs, etc. within the process.
To additional safe the server, disable password-based SSH authentication and prohibit root login. Next, copy your native public key to the git user’s authorized_keys file on the server. If you want to limit that, you’ll have to change the shell to something else in the /etc/passwd file. You ought to note that currently all these customers can even log into the server and get a shell because the git user.
