(identityFiles: string[])
| 250 | ); |
| 251 | } |
| 252 | async function resolvePrivateKeys(identityFiles: string[]): Promise<Buffer[]> { |
| 253 | const keys: Buffer[] = []; |
| 254 | |
| 255 | for (const file of identityFiles) { |
| 256 | try { |
| 257 | keys.push(await fs.readFile(file)); |
| 258 | } catch { |
| 259 | // Try next identity file. |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | return keys; |
| 264 | } |
| 265 | |
| 266 | export class SSH2ConnectionPool { |
| 267 | private health = new Map<string, ConnectionHealth>(); |
no test coverage detected