Download raw body.
Straightforward repo retrieving command (gotd configuration)
Straightforward repo retrieving command (gotd configuration)
Hi Sylvain, On Sat, Mar 29, 2025 at 03:10:42AM GMT, Sylvain Saboua wrote: > Say I wish to remotely retrieve a repository, > for instance geomant from got.saboua.xyz > (gotwebd server) which also has gotd(8) running: > > # cat /etc/gotd.conf > repository geomant { > path '/var/www/got/public/geomant' > permit rw sylvain > permit ro anonymous > permit ro :got > } > repository rfdupes { > path '/var/www/got/public/rfdupes' > # empty repo atm > } > ... (two websites' code in addition) > > SSH/encryption is fine, I don't necessarily > require authentication since I want anyone > to be able to retrieve my code. > > The following commands from an Apple M1 over > local network with got from brew.sh are not > working, and, do I really need to be asked a > password for anonymous ? > > $ got clone ssh://lap/geomant > Connecting to ssh://lap/geomant > sylvansab@lap's password: ^C > $ got clone ssh://anonymous@lap/geomant > Connecting to ssh://anonymous@lap/geomant > anonymous@lap's password: ^C > $ got clone ssh://got@lap/geomant > Connecting to ssh://got@lap/geomant > got@lap's password: > got-fetch-pack: packet length has invalid format > got: bad packet received > > My smartphone is for repair at the moment but > I also get an error while trying from termux using git: > $ git clone git://got@saboua.xyz/geomant > got@saboua.xyz's password: > fatal: protocol error: bad line length character: This > > I have a got user configured on the system, > with password gotGOTgot. > > $ grep got /etc/passwd /etc/group > /etc/passwd:_gotd:*:501:501:Game of Trees Daemon:/nonexistent:/sbin/nologin > /etc/passwd:got:*:2001:2001::/var/www/got/public/:/sbin/nologin > /etc/group:_gotd:*:501: > /etc/group:got:*:2001:got > > I am not sure, maybe my problem stems > from wishing to use the same repository > with both gotwebd(8) and gotd(8) ? Nope, your problem stems from not reading the documentation[0] ;^) $ man 1 gotsh [...] The anonymous user account should have a publicly known password, or can be set up with an empty password in which case the user's vipw(8) entry would look similar to this example: anonymous::1002:1002::0:0:Anonymous:/home/anonymous:/usr/local/bin/gotsh [...] [0] https://gameoftrees.org/gotsh.1.html Regards, Raf
Straightforward repo retrieving command (gotd configuration)
Straightforward repo retrieving command (gotd configuration)