If one wants to go this way, then I just discovered Tags it should work like this (I haven’t tested it and never used tags) Match tagged FA ForwardAgent yes ControlPath ~/.ssh/controlmaster-%r@%h-%p-forwardagent ControlMaster off … and then to have a session with forwarding: ssh -P FA user@host But I still think we should be able to setup ssh to just do the right thing if the options differ in general. Jan > On 28. 1. 2025, at 14:36, Brian Candler <b.candler@xxxxxxxxx> wrote: > > Just tested: > > alias ssha="ssh -A -o ControlPath=%d/tmp/ssh_mux-a_%h_%p_%r" > > It works. I might keep it. Thanks for the idea :-) _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev