fix: emergency SSH permission fix via CI

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-04-03 04:00:37 +01:00
parent 24e537c027
commit 1508cc3e13

View File

@ -0,0 +1,18 @@
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: |
sudo chown -R debian:debian /home/debian
sudo chmod 700 /home/debian/.ssh
sudo chmod 600 /home/debian/.ssh/authorized_keys
sudo systemctl restart sshd
echo "SSH fixed"