Image

Imagediscordian wrote in Imagelinux

SSH port games.

I have a minor problem with SSH. I have a network, with one dynamic public IP address and No-IP for ease of use. On this network I have several servers with SSHD running. I determine traffic by playing port games on the firewall so:

ssh -p XXXX my.domain.com - goes to MachineX
ssh -p YYYY my.domain.com - goes to MachineY

The problem is, this really pisses off my .ssh/known_hosts at home (outside the above-mentioned network). Predictably I get the "man in the middle" warning. I don't want to completely disable key verification, but so far have not been able to find a way to add both of my machines to coexist in ssh's eyes. Any ideas?