fix: emergency SSH permission fix via CI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
24e537c027
commit
1508cc3e13
18
.gitea/workflows/fix-ssh.yml
Normal file
18
.gitea/workflows/fix-ssh.yml
Normal 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"
|
||||||
Loading…
x
Reference in New Issue
Block a user