Why do the "ssh_config(5)" manpages recommend that the ControlPath option should contain at least the %h, %p and %r placeholders in order to uniquely identify each shared connection?
I thought that multiple sessions should share the same socket with a connection to the same host. Wouldn't it make sense then to have a simple definition such as:
ControlPath ~/.cache/ssh/mux/%h
Instead of something like:
ControlPath ~/.cache/ssh/mux/%r@%h:%p
In my understanding with the first definition one connection is shared between multiple sessions with different remote users, to the same remote host, on different remote ports.
I want to have the first defintion in the host default section so that it suffices to say ssh -o ControlMaster=no.
I want to share the connection to the same remote host between all sessions initiated by the same local user regardless of the remote user and remote port. The master client's socket should live beneath the local user's home directory.