Using gitea over ssh had two isses: 1. No shell was set for the user 2. Gitea tried to write logs to /nix/store/x83q12kyd9gw1pay036dxz2dq0apf17h-gitea-1.3.2-bin/log when serving the ssh usage.