it can't. ssh and other network services like it have no concept of hostnames on the wire. you enter site2.com it does a dns resolution. from that point on the network level only references IP addresses and port numbers, nothing about the original hostname itself. you'd be looking at port multiplexing or an ssh gateway.
|