For some reasons, I NEED the home directory of some particular user to be group-writable. However, when trying to login to that user with ssh key, sshd refuses the authentication, as it requires the home directory to be writable by noone else than owner. In case it is group- or world-writable, sshd rejects authentication with the (in)famous message "Authentication refused: bad ownership or modes for directory /home/user".
Is there any way (except recompiling sshd) to force it to accept key authentication even when home directory is group-writable? Maybe place ssh keys in a different directory, outside of user's home dir, and tell sshd to use these keys?