I have following configuration in .ssh config:
Host *
GSSAPIAuthentication no
Compression yes
ForwardAgent yes
ForwardX11 no
Protocol 2
StrictHostKeyChecking no
NoHostAuthenticationForLocalhost yes
ControlPath ~/.ssh/sockets/%r-%h-%p
ControlMaster auto
Host test
User xxx
Hostname some_ip
Of course I have more than 1 Host defined.
Now. When I connect anywhere I ger connection multiplexer which works great. But. When I connect to 2 specific hosts, both running Redhat, which I think can have something to do with the problem, I have following situation:
- if I start 2nd connection to test host quickly, (I.e. ssh test on 1 konsole tab, and quicjly another in 2nd tab - it works ok. both connections go via multiplexed channel)
- if I start master, then wait over 1 minute or so, and then try to start 2nd connection - master is disconnected, and 2nd connection also errors-out before connect.
What could be wrong?