Sample Header Ad - 728x90

ssh config: can I have 2 host wildcards?

-1 votes
1 answer
401 views
### Simplified Example:
host one
  user cat

host two
  hostname 2

host three
  hostname 3

host *
  hostname 1
  

host *
  user apple
  identityFile ~/.ssh/id_rsa

host y
  hostname 7

host t
  hostname 8

host * 
  user duck
  identityFile ~/.ssh/quack
Is this possible? The hosts above the 1st host * would inherit it's values only, and the 2nd hosts would only inherent the host * beneath them. If not is there a way to achieve this?
Asked by Nickotine (554 rep)
Nov 3, 2023, 12:03 AM
Last activity: Nov 3, 2023, 07:27 AM