Archived
0
Fork 0
Restrict SSH access based on user's SSH key.
This repository has been archived on 2024-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2023-04-03 17:57:09 -07:00
.gitignore chore: complete rewrite in Golang to make user management far easier 2022-12-28 09:14:59 -08:00
applet.go chore: add back repo list functionality and basic error handling 2022-12-28 09:17:07 -08:00
data.example.json chore: complete rewrite in Golang to make user management far easier 2022-12-28 09:14:59 -08:00
git-passeport.sh chore: complete rewrite in Golang to make user management far easier 2022-12-28 09:14:59 -08:00
LICENSE Initial commit 2022-08-04 06:55:39 -07:00
README.md Update README.md 2023-04-03 17:57:09 -07:00

This repository is now maintained on Sourcehut here.

Usage

  1. Add git-passeport.sh to your server and make it executable (chmod +x git-passeport.sh)
  2. Build app.go (go build applet.go)
  3. Create a git user (adduser git)
  4. Add SSH keys to the user (.ssh/authorized_keys) prefixed by command="git-passeport.sh"
  • Note: you should specify the exact directory of the Shell file. Wildcards (folder/*) aren't supported as of now.
  1. Ensure your bare repositories (git init --bare example.git) are owned by the git user