Skip to content

Commit 472bb31

Browse files
committed
Pass IdentityFile to gatherIdentityFiles
1 parent 12940df commit 472bb31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/remoteConnector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ export default class RemoteConnector extends Disposable {
534534
}
535535

536536
const hostConfiguration = sshConfiguration.getHostConfiguration(hostname);
537-
let identityKeys = await gatherIdentityFiles([], getAgentSock(hostConfiguration), false, this.logger);
537+
const identityFiles: string[] = (hostConfiguration['IdentityFile'] as unknown as string[]) || [];
538+
let identityKeys = await gatherIdentityFiles(identityFiles, getAgentSock(hostConfiguration), false, this.logger);
538539

539540
if (registeredSSHKeys) {
540541
const registeredKeys = this.publicApi

0 commit comments

Comments
 (0)