mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-03-30 06:49:07 +08:00
Use IdentitiesOnly=yes always
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -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`
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user