1

I've asked this on another SE site, but I don't think I was clear enough. So, I will try it here. As an example - I have 2 domains (acme.com, ajax.com). Both resolve to my single static IP. Meanwhile, my router routes all port 22 traffic (SSH) to a Linux server (192.168.1.21). What I would like to do (if this is possible) is to make acme.com THE url for SSH. I realize all of the traffic is routed to .21 (the router doesn't know about names), but is there some way to instruct Linux to reject port 22 requests when the name requested is ajax.com? In other words, is there any way to ask Linux to see the entire request?

Or perhaps the SSHd can do this? (shot in the dark)

Thanks in advance for any advice.

aserwin
  • 148

1 Answers1

4

No.

When you ssh to acme.com, clients PC resolves it to an IP address, and ssh just connects to that IP. It never sends the domain name to the sshd on the server.

mulaz
  • 10,962