Skip to content

Commit 29f1ba0

Browse files
committed
superuser
1 parent 5dff10a commit 29f1ba0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ jobs:
183183
StrictHostKeyChecking no
184184
END
185185
chmod 700 ~/.ssh/
186-
chmod g-w $HOME
187-
chmod o-w $HOME
186+
# https://superuser.com/a/1145465
187+
sudo chown $USER:$USER /home/$USER/{.,.ssh/,.ssh/authorized_keys}
188+
sudo chmod u+rwX,go-rwX,-t /home/$USER/{.ssh/,.ssh/authorized_keys}
189+
sudo chmod go-w /home/$USER/
188190
echo "Connecting as $USER@localhost"
189191
# this line (and the -o StrictHostKeyChecking=no) is so the server
190192
# is added to the list of known servers

0 commit comments

Comments
 (0)