We need to create Go base ssh server for more flexible control. It can start from here https://github.com/gogs/gogs/blob/main/internal/ssh/ssh.go https://github.com/go-gitea/gitea/blob/master/cmd/serv.go https://github.com/gliderlabs/ssh