Warn on SSH connection for incorrect configuration (#19317)
Warn on SSH connection for incorrect configuration (#19317)

* Warn on SSH connection for incorrect configuration

- When `setting.RepoRootPath` cannot be found(most likely due to
incorrect configuration) show "Gitea: Incorrect configuration" on the
client-side to help easier with debugging the problem.

* Update cmd/serv.go

Co-authored-by: delvh <de75dc486f30b28015fd919fc5449eba02c6f8c6@web.de>

* Don't leak configuration

* Update cmd/serv.go

Co-authored-by: delvh <de75dc486f30b28015fd919fc5449eba02c6f8c6@web.de>
Co-authored-by: wxiaoguang <afddda5b6ea4f5ea4386c1c8946f240cce9ffa2e@gmail.com>
Co-authored-by: techknowlogick <274271a2414b6bd0d2eb0401dd4ff6e85d7016a7@gitea.io>
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea