Closed abakum closed 4 months ago
Interesting work-around, but ultimately a duplicate of #5. The solution I proposed there involved reconnecting N times for N keys; your solution here is better in some ways (yours only requires 1 extra connection), but may be more brittle since it requires parsing error text, which is generally inadvisable in Go.
Either way, since this is involving extra connections and is handled outside of this package, I'd rather keep the official example small and simple.
Will you accept PR?
Afraid I've been spending way too much time on this repo lately. Unless there's a major issue, I need to drop my time on this repo down to zero for the foreseeable future, sorry.
This behavior can be done in your example by adding after the line https://github.com/skeema/knownhosts/blob/9485bdec8ed521b32ab0e9310619effa071a99d6/example_test.go#L109
ScanHostKeys:
Will you accept PR?