Use IdentitiesOnly=yes always

This commit is contained in:
Matthias Pigulla 2021-03-02 16:13:48 +00:00
parent 7667967a0a
commit d3770df27e
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

@ -219,7 +219,7 @@ try {
// On Linux and OS X, IdentitiesOnly=no will send all keys from agent before the explicit key, so use "yes". // On Linux and OS X, IdentitiesOnly=no will send all keys from agent before the explicit key, so use "yes".
// 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) // 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'; let identitiesOnly = 'yes'; // isWindows ? 'no' : 'yes';
let sshConfig = `\nHost key-${keyNumber}\n` let sshConfig = `\nHost key-${keyNumber}\n`
+ ` HostName github.com\n` + ` HostName github.com\n`

View file

@ -102,7 +102,7 @@ try {
// On Linux and OS X, IdentitiesOnly=no will send all keys from agent before the explicit key, so use "yes". // On Linux and OS X, IdentitiesOnly=no will send all keys from agent before the explicit key, so use "yes".
// 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) // 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'; let identitiesOnly = 'yes'; // isWindows ? 'no' : 'yes';
let sshConfig = `\nHost key-${keyNumber}\n` let sshConfig = `\nHost key-${keyNumber}\n`
+ ` HostName github.com\n` + ` HostName github.com\n`