This commit is contained in:
Matthias Pigulla committed 2021-03-02 16:11:15 +00:00
1 parent a4b2891e37
commit c77dd5afd7
3 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -221,11 +221,11 @@ try {
// On Windows, IdentitiesOnly=yes will ignore keys from the agent, but send explicit keys first; so use "no" (https://github.com/PowerShell/Win32-OpenSSH/issues/1550)
let identitiesOnly = isWindows ? 'no' : 'yes';
// Use IdentitiesOnly=no due to https://github.com/PowerShell/Win32-OpenSSH/issues/1550
let sshConfig = `\nHost key-${keyNumber}\n`
+ ` HostName github.com\n`
+ ` User git\n`
+ ` IdentitiesOnly ${identitiesOnly}\n`
+ ` AddKeysToAgent yes\n`
+ ` IdentityFile ${keyFile}\n`;
fs.appendFileSync(`${homeSsh}/config`, sshConfig);