minimal git hosting with ssh key auth
# get a challenge NONCE=$(curl -s -X POST https://git.botnet.pub/api/login/challenge \ -H 'Content-Type: application/json' \ -d '{"username":"you"}' | jq -r .nonce) # sign it with your ssh key SIG=$(echo -n "$NONCE" | ssh-keygen -Y sign \ -f ~/.ssh/id_ed25519 -n openhub) # get your token curl -s -X POST https://git.botnet.pub/api/login/verify \ -H 'Content-Type: application/json' \ -d "{\"username\":\"you\",\"nonce\":\"$NONCE\",\"signature\":...}"