name: Fix SSH Permissions on: push: branches: [main] env: HOME: /tmp jobs: fix-ssh: runs-on: ubuntu-latest timeout-minutes: 2 steps: - name: Fix debian user UID and SSH working-directory: /tmp run: | echo "Fixing SSH..." sudo chown -R 1000:1000 /home/debian sudo chmod 700 /home/debian/.ssh sudo chmod 600 /home/debian/.ssh/authorized_keys sudo systemctl restart sshd echo "SSH fixed"