gitoriaLog in with ident

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4a2d71254a2d7125initial commitmre4a2d7125/docker/sshd/gitoria-keys

358 B

  1. #!/bin/sh
  2. # sshd AuthorizedKeysCommand: `gitoria-keys <key type> <base64 key>` → the authorized_keys line of a key the app knows, else nothing.
  3. [ -n "$1" ] && [ -n "$2" ] || exit 0
  4. exec curl -sS --max-time 10 -G -H "X-Gitoria-Secret: $(cat /run/gitoria-secret)" \
  5. --data-urlencode "type=$1" --data-urlencode "key=$2" "$(cat /run/gitoria-url)/__git/keys"

Branches

Latest commits

  • 4a2d7125initial commitmre