How is cmd/serv.go called by SSH shell?

Hi everyone,

Does anyone know how cmd/serv.go is called by SSH shell?
here It says This command should only be called by SSH shell. Does anyone know how SSH shell can call it? Does it mean we configure something in sshd config file so that it knows to call it?

I am just trying to understand how this is working: is it like for each SSH connection, a new gitea process is created?


yes, look into the authorized_key file, and you’ll see that gitea serv is called. a full gitea process isn’t created, as the serv command is a lightweight connector that’ll interface with the running gitea process.