You are not logged in.

#1 2020-07-04 22:10:02

Bronze
Member
Registered: 2016-12-23
Posts: 60

LAN git server: did I do this correctly?

I wanted to setup a local GIT server. I amalgamated these instructions:

[1] https://miracoin.wordpress.com/2014/11/ … -pushable/
[2] https://git-scm.com/book/en/v2/Git-on-t … the-Server

When I wanted to make a remote clone of my fresh repo, I got:
"Your account has expired; please contact your system administrator"

I fixed this by "chage -E -1 git"

In order to use /src/git/.ssh/authorized_keys, I changed the home directory for git in /etc/passwd from "/" to "srv/git".
And I changed the  --base-path in "/usr/lib/systemd/system/git-daemon\@.service" to "."

Did I do this correctly?
I can try and edit "https://wiki.archlinux.org/index.php/Git_server#SSH" assuming the above changes are correct for getting SSH access to git hosted locally.

Offline

Board footer

Powered by FluxBB