I want to access the Git repos on my server via a subdomain (git.mydomain.com) only. How do I accomplish that? I set an A/AAAA record to git.mydomain.com, but where do I go from here?
SSH only knows which username and IP address is being connected to; the protocol doesn't pass the hostname being used by the client. (HTTP is one of the few protocols that does, so it's the exception here.)