the error i got with sshd was: [pid 1425] setgroups(1, [65534]) = -1 EINVAL (Invalid argument) my problem was, i only mapped 10000 gids and 65534 was too high. i still dont know why ubuntu works though, because it has the same config. so everything is solved, yay!