On 20 Sep 2014 13:20, "Chris Green" <cl@isbd.net> wrote:
> Can anyone come up with an easy way to change how 'ssh chris' acts
> according to whether I'm on the LAN where 'chris' is or not. Similarly
> I want the same to happen when I'm on the LAN where 'odin' is (which
> is not the same LAN).

What provides your DNS when you're at the different locations?

Simply make sure that whatever it is dishes out the local addresses. When you're away from that location the world visible DNS will give the external IP, when you're at the location the local DNS will override the world visible alternatives.

Mark