]> source.dussan.org Git - gitea.git/commit
Correct permissions for `.ssh` and `authorized_keys` (#25721) (#25731)
authorGiteabot <teabot@gitea.io>
Thu, 6 Jul 2023 16:14:50 +0000 (12:14 -0400)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2023 16:14:50 +0000 (12:14 -0400)
commite6801df99c6bdfdbe4cc7be56d373566d12745b5
treebc1cb383bf579bece120b2aef213110fae37e31d
parent67d16c653fbed71a91a288a8e08e21e8c681a003
Correct permissions for `.ssh` and `authorized_keys` (#25721) (#25731)

Backport #25721 by @wolfogre

Set the correct permissions on the .ssh directory and authorized_keys
file, or sshd will refuse to use them and lead to clone/push/pull
failures.

It could happen when users have copied their data to a new volume and
changed the file permission by accident, and it would be very hard to
troubleshoot unless users know how to check the logs of sshd which is
started by s6.

Co-authored-by: Jason Song <i@wolfogre.com>
docker/root/etc/s6/gitea/setup