After long debugging, I found why I can not login to my MacOS machine with ssh:
Authentication refused: bad ownership or modes for directory /Users/myuser/projects
The problem is that I track my
.ssh config directory in a git repo, and I link to it in my home directory. It seems that MacOS, as opposed to Linux, does check that all parent directories of the linked repo have strict permissions. And this even though the repo itself has the right permissions:
» ls -ld /home/myuser/projects/homedir/dotfiles/.ssh drwx------ 2 myuser myuser 4096 Feb 14 07:47 /home/myuser/projects/homedir/dotfiles/.ssh
Is it possible to disable this checking in MacOS? I have a single directory structure which I rsync around to my machines, and having to change this because of this MacOs limitation is a pain.