Use IdentitiesOnly=no

This commit is contained in:
Matthias Pigulla 2021-03-01 10:53:18 +00:00
parent 02a6899abb
commit 88bcf9af86
3 changed files with 3 additions and 2 deletions

View file

@ -58,6 +58,7 @@ jobs:
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
- run: |
ssh-add -l
cat ~/.ssh/config
ls -alh ~/.ssh
git clone git@github.com:mpdude/test-2.git test-2-git

2
dist/index.js vendored
View file

@ -215,7 +215,7 @@ try {
let sshConfig = `\nHost key-${keyNumber}\n`
+ ` HostName github.com\n`
+ ` User git\n`
+ ` IdentitiesOnly yes\n`
+ ` IdentitiesOnly no\n`
+ ` IdentityFile ${keyFile}\n`;
fs.appendFileSync(`${homeSsh}/config`, sshConfig);

View file

@ -98,7 +98,7 @@ try {
let sshConfig = `\nHost key-${keyNumber}\n`
+ ` HostName github.com\n`
+ ` User git\n`
+ ` IdentitiesOnly yes\n`
+ ` IdentitiesOnly no\n`
+ ` IdentityFile ${keyFile}\n`;
fs.appendFileSync(`${homeSsh}/config`, sshConfig);