https://bugzilla.mindrot.org/show_bug.cgi?id=3742
Damien Miller <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME CC| |[email protected] --- Comment #1 from Damien Miller <[email protected]> --- The approach in example 3 works fine: > [djm@desktop ~]$ cat > /tmp/cfg > Host a > User user_a > Host b > User user_b > Host A > User specificusername > Host * > User defaultusername > [djm@desktop ~]$ ssh -F /tmp/cfg -G A | grep '^user ' > user specificusername > [djm@desktop ~]$ ssh -F /tmp/cfg -G a | grep '^user ' > user user_a > [djm@desktop ~]$ ssh -F /tmp/cfg -G xxx | grep '^user ' > user defaultusername You can also use Match final if you prefer the list the defaults first, though this will cause the config to be evaluated twice. > [djm@desktop ~]$ cat > /tmp/cfg > Match final > User defaultusername > Host a > User user_a > Host b > User user_b > Host A > User specificusername > [djm@desktop ~]$ ssh -F /tmp/cfg -G A | grep '^user ' > user specificusername > [djm@desktop ~]$ ssh -F /tmp/cfg -G a | grep '^user ' > user user_a > [djm@desktop ~]$ ssh -F /tmp/cfg -G xxx | grep '^user ' > user defaultusername -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug. _______________________________________________ openssh-bugs mailing list [email protected] https://lists.mindrot.org/mailman/listinfo/openssh-bugs
