Can't ssh into the machine because the rights of the folder are wrong

Hey there,

I have configured my machine to accept ssh keys along with passwords. For a few weeks now I regularly have an issue with my Yunohost installation: the rights of the admin folder are 775. I can see that in the logs:

Jul 25 10:56:43 myhost sshd[1130460]: Authentication refused: bad ownership or modes for directory /home/admin

I always change the folder rights to 755, but somehow it keeps coming back. However, since I made some funky business to allow applications to share content, I can’t say exactly where the blame is so I’ll keep investigating. In the meantime, if someone deals with that, they should know that the temporary fix is to reset correct rights:

$ chmod 755 ~

and unfortunately still allow password auth as a fallback.

Same as Impossible de se connecter avec une clé ssh après chaque mise à jour

The user admin is deprecated. It’s not recommended to use it. Instead use another user and add it to the admins group

Oh, I didn’t know. Thanks !