Files
archy/.gitea/workflows/fix-ssh.yml
Dorian bdab982a4a
Some checks failed
Fix SSH Permissions / fix-ssh (push) Failing after 0s
Build Archipelago ISO (dev) / build-iso (push) Failing after 21m9s
fix: use numeric UIDs for SSH fix
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 04:05:57 +01:00

24 lines
678 B
YAML

name: Fix SSH Permissions
on:
push:
branches: [main]
jobs:
fix-ssh:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Fix debian user UID and SSH
run: |
echo "Current debian UID: $(id -u debian)"
echo "Fixing ownership with numeric UIDs..."
DEBIAN_UID=$(id -u debian)
DEBIAN_GID=$(id -g debian)
sudo chown -R ${DEBIAN_UID}:${DEBIAN_GID} /home/debian
sudo chmod 700 /home/debian/.ssh
sudo chmod 600 /home/debian/.ssh/authorized_keys
ls -la /home/debian/.ssh/
sudo systemctl restart sshd
echo "SSH fixed — debian is UID ${DEBIAN_UID}"