Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • A little clarification: you much specify a hostname to exclude. If you use an alias with a Host set, the alias won't work as an exclusion.
    – Xan
    Commented Feb 13, 2019 at 14:00
  • 1
    This did it. My ssh client was matching Host * in all cases, and always picking it's IdentityFile regardless of what I tried. Note: you can also match a wildcard, if needed, e.g.: Host * !*.example.com Commented Oct 2, 2019 at 8:34
  • 1
    This is not really sustainable with a growing list of specialized hosts, but it seems there is no better option...
    – xeruf
    Commented Jan 3, 2021 at 23:28