Commit fd6b232
committed
feat: Add SSH configuration file parsing (-F option)
Implements comprehensive SSH config file parsing with support for:
- Standard SSH config file reading from ~/.ssh/config or custom path via -F flag
- Host pattern matching including wildcards (* and ?) and negation (!)
- Over 40 SSH configuration directives including Host, HostName, User, Port, IdentityFile
- ProxyJump, ProxyCommand, StrictHostKeyChecking, and connection settings
- Proper SSH precedence rules: CLI args > SSH config > defaults
- Environment variable expansion in file paths
- First-match-wins pattern resolution following SSH behavior
The implementation integrates seamlessly with existing bssh commands while maintaining full backward compatibility.1 parent 9c6be63 commit fd6b232
4 files changed
Lines changed: 1413 additions & 80 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments