From d3770df27ed4f8d95637b5ad8b59cb33647c7f55 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Tue, 2 Mar 2021 16:13:48 +0000 Subject: [PATCH] Use IdentitiesOnly=yes always --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 13153bf..45cc293 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 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` + ` HostName github.com\n` diff --git a/index.js b/index.js index 41be448..58eaa20 100644 --- a/index.js +++ b/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 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` + ` HostName github.com\n`