On Mon, Sep 22, 2014 at 01:58:00PM +0100, Laurie Brown wrote:
On 22/09/14 13:49, Chris Green wrote:
[SNIP]
As I have pointed out in a previous reply this doesn't work because of the ProxyAddress stuff I have in my ~/.ssh/config file. I need some way to switch the ProxyCommand off when I'm on the LAN.
Why not have two such files, each specific to a particular location, and write a bash script with a parameter to copy over your ~/.ssh/config file whichever version you need? I really don't understand the problem here.
Fine, it's just the sort of thing I was thinking of doing. My question was really how to automate the switch over by (somehow) detecting whether I'm connected to the LAN or not.