fix: use numeric UIDs for SSH fix
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1508cc3e13
commit
0fca903188
@ -11,8 +11,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Fix debian user UID and SSH
|
- name: Fix debian user UID and SSH
|
||||||
run: |
|
run: |
|
||||||
sudo chown -R debian:debian /home/debian
|
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 700 /home/debian/.ssh
|
||||||
sudo chmod 600 /home/debian/.ssh/authorized_keys
|
sudo chmod 600 /home/debian/.ssh/authorized_keys
|
||||||
|
ls -la /home/debian/.ssh/
|
||||||
sudo systemctl restart sshd
|
sudo systemctl restart sshd
|
||||||
echo "SSH fixed"
|
echo "SSH fixed — debian is UID ${DEBIAN_UID}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user