Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1 1 6
Impact
~17k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Oct
27
awarded  Nice Question
Sep
24
awarded  Famous Question
Aug
2
awarded  Teacher
Aug
2
comment Dynamically generate SSH Host entries in ~/.ssh/config
I think that's a fine approach, probably a little less confusing than the approach I used. I read a number of Host declarations into memory, then a number of non-host declarations. The non-host declarations are applied to each Host in the current group until there's another Host. I also allow Hosts to be declared multiple times in the file, including using globbing. At the end I write out all of what I have been building in memory.
Aug
2
comment Dynamically generate SSH Host entries in ~/.ssh/config
My script is totally undocumented and I don't think it would be comprehensible without documentation or examples, which I don't have time to create.
Nov
22
awarded  Student
Aug
7
awarded  Notable Question
Feb
27
awarded  Supporter
Dec
15
awarded  Popular Question
Oct
6
awarded  Scholar
Oct
6
accepted Suppressing ssh banner from OpenSSH client
Oct
6
comment Suppressing ssh banner from OpenSSH client
I think that LogLevel ERROR only suppresses the banner in newer versions of OpenSSH. In older versions, LogLevel QUIET or ssh -q are required.
Sep
19
asked Suppressing ssh banner from OpenSSH client
Sep
19
answered Dynamically generate SSH Host entries in ~/.ssh/config