Like a virtual host declaration at a web server, I'd like to control sshd when a connection with a certain domain name gets established. That is, multiple domain names point to the sshd machine, which has only a single IP address.
Is it possible at all? Following doesn't seem to work:
Match Host some-domain.com
ChrootDirectory /some/dir
If I connect from my local machine with ssh some-domain.com
I'm not rooted to /some/dir.
Can it be done anyhow? According to this (old) question and its answers it is not possible...