mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-27 03:13:17 +00:00
Use IdentitiesOnly=no
This commit is contained in:
parent
02a6899abb
commit
88bcf9af86
3 changed files with 3 additions and 2 deletions
1
.github/workflows/demo.yml
vendored
1
.github/workflows/demo.yml
vendored
|
@ -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
2
dist/index.js
vendored
|
@ -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);
|
||||
|
|
2
index.js
2
index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue