Commit bbcebc8

bryfry <bryon@fryer.io>
2025-09-27 15:56:53
more install
1 parent 9526e98
Changed files (1)
forge.md
@@ -5,7 +5,7 @@ sudo -u git git init --bare /opt/git/repos/{{path}}/{{repo}}.git
 ```
 
 ```bash
-git add remote origin forge:{{path}}/{{repo}}.git
+git add remote origin git@forge:{{path}}/{{repo}}
 ```
 
 ## Backups
@@ -32,8 +32,29 @@ sudo -u git mkdir -p /opt/git/.ssh /opt/git/backup
 sudo -u git git config --global init.defaultBranch main
 ```
 
+Update `/etc/ssh/sshd_config`
+
+```ssh_config
+Match User git
+    ForceCommand /usr/bin/git-shell -c "$SSH_ORIGINAL_COMMAND"
+    AllowAgentForwarding no
+    PermitTTY no
+    X11Forwarding no
+```
+
+```bash
+sudo systemctl reload sshd
+```
+
 Remaining setup work
-- Setup authorized keys
+- Setup authorized keys in `/opt/git/.ssh/authorized_keys`
 - Extract backup repos and/or upate repo dirs
 
+### Client setup
+
+```ssh_config
+Host forge
+    Hostname 192.168.32.24
+    User git
+```